CVE-2022-49031 (GCVE-0-2022-49031)

Vulnerability from cvelistv5 – Published: 2024-10-21 20:06 – Updated: 2025-05-04 08:28
VLAI?
Title
iio: health: afe4403: Fix oob read in afe4403_read_raw
Summary
In the Linux kernel, the following vulnerability has been resolved: iio: health: afe4403: Fix oob read in afe4403_read_raw KASAN report out-of-bounds read as follows: BUG: KASAN: global-out-of-bounds in afe4403_read_raw+0x42e/0x4c0 Read of size 4 at addr ffffffffc02ac638 by task cat/279 Call Trace: afe4403_read_raw iio_read_channel_info dev_attr_show The buggy address belongs to the variable: afe4403_channel_leds+0x18/0xffffffffffffe9e0 This issue can be reproduced by singe command: $ cat /sys/bus/spi/devices/spi0.0/iio\:device0/in_intensity6_raw The array size of afe4403_channel_leds is less than channels, so access with chan->address cause OOB read in afe4403_read_raw. Fix it by moving access before use it.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: b36e8257641a043764c62240316610c81e36376c , < 98afcb5f3be645d330c74c5194ba0d80e26f95e0 (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < c9268df36818ee4eaaaeadc80009b442a5ca69c9 (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < 726fa3e4ab97dcff1c745bdc4fb137366cb8d3df (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < 2d6a437064ffbe685c67ddb16dfc0946074c6c3f (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < b1756af172fb80a3edc143772d49e166ec691b6c (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < e7e76a77aabef8989cbc0a8417af1aa040620867 (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < 06c6ce21cec77dfa860d57e7a006000a57812efb (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < 58143c1ed5882c138a3cd2251a336fc8755f23d9 (git)
Create a notification for this product.
    Linux Linux Affected: 4.8
Unaffected: 0 , < 4.8 (semver)
Unaffected: 4.9.335 , ≤ 4.9.* (semver)
Unaffected: 4.14.301 , ≤ 4.14.* (semver)
Unaffected: 4.19.268 , ≤ 4.19.* (semver)
Unaffected: 5.4.226 , ≤ 5.4.* (semver)
Unaffected: 5.10.158 , ≤ 5.10.* (semver)
Unaffected: 5.15.82 , ≤ 5.15.* (semver)
Unaffected: 6.0.12 , ≤ 6.0.* (semver)
Unaffected: 6.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-49031",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-22T13:11:13.693004Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-22T13:18:35.737Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/health/afe4403.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "98afcb5f3be645d330c74c5194ba0d80e26f95e0",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "c9268df36818ee4eaaaeadc80009b442a5ca69c9",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "726fa3e4ab97dcff1c745bdc4fb137366cb8d3df",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "2d6a437064ffbe685c67ddb16dfc0946074c6c3f",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "b1756af172fb80a3edc143772d49e166ec691b6c",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "e7e76a77aabef8989cbc0a8417af1aa040620867",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "06c6ce21cec77dfa860d57e7a006000a57812efb",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "58143c1ed5882c138a3cd2251a336fc8755f23d9",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/health/afe4403.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.8"
            },
            {
              "lessThan": "4.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.335",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.301",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.268",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.158",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.82",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.335",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.301",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.268",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.226",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.158",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.82",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.12",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: health: afe4403: Fix oob read in afe4403_read_raw\n\nKASAN report out-of-bounds read as follows:\n\nBUG: KASAN: global-out-of-bounds in afe4403_read_raw+0x42e/0x4c0\nRead of size 4 at addr ffffffffc02ac638 by task cat/279\n\nCall Trace:\n afe4403_read_raw\n iio_read_channel_info\n dev_attr_show\n\nThe buggy address belongs to the variable:\n afe4403_channel_leds+0x18/0xffffffffffffe9e0\n\nThis issue can be reproduced by singe command:\n\n $ cat /sys/bus/spi/devices/spi0.0/iio\\:device0/in_intensity6_raw\n\nThe array size of afe4403_channel_leds is less than channels, so access\nwith chan-\u003eaddress cause OOB read in afe4403_read_raw. Fix it by moving\naccess before use it."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:28:26.837Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/98afcb5f3be645d330c74c5194ba0d80e26f95e0"
        },
        {
          "url": "https://git.kernel.org/stable/c/c9268df36818ee4eaaaeadc80009b442a5ca69c9"
        },
        {
          "url": "https://git.kernel.org/stable/c/726fa3e4ab97dcff1c745bdc4fb137366cb8d3df"
        },
        {
          "url": "https://git.kernel.org/stable/c/2d6a437064ffbe685c67ddb16dfc0946074c6c3f"
        },
        {
          "url": "https://git.kernel.org/stable/c/b1756af172fb80a3edc143772d49e166ec691b6c"
        },
        {
          "url": "https://git.kernel.org/stable/c/e7e76a77aabef8989cbc0a8417af1aa040620867"
        },
        {
          "url": "https://git.kernel.org/stable/c/06c6ce21cec77dfa860d57e7a006000a57812efb"
        },
        {
          "url": "https://git.kernel.org/stable/c/58143c1ed5882c138a3cd2251a336fc8755f23d9"
        }
      ],
      "title": "iio: health: afe4403: Fix oob read in afe4403_read_raw",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49031",
    "datePublished": "2024-10-21T20:06:35.214Z",
    "dateReserved": "2024-08-22T01:27:53.652Z",
    "dateUpdated": "2025-05-04T08:28:26.837Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-49031\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:11:13.693004Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:11:16.907Z\"}}], \"cna\": {\"title\": \"iio: health: afe4403: Fix oob read in afe4403_read_raw\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"98afcb5f3be6\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"c9268df36818\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"726fa3e4ab97\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"2d6a437064ff\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"b1756af172fb\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"e7e76a77aabe\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"06c6ce21cec7\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"58143c1ed588\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/iio/health/afe4403.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.8\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.8\", \"versionType\": \"custom\"}, {\"status\": \"unaffected\", \"version\": \"4.9.335\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"4.9.*\"}, {\"status\": \"unaffected\", \"version\": \"4.14.301\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.268\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.226\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.158\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.82\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.0.12\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.0.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/iio/health/afe4403.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/98afcb5f3be645d330c74c5194ba0d80e26f95e0\"}, {\"url\": \"https://git.kernel.org/stable/c/c9268df36818ee4eaaaeadc80009b442a5ca69c9\"}, {\"url\": \"https://git.kernel.org/stable/c/726fa3e4ab97dcff1c745bdc4fb137366cb8d3df\"}, {\"url\": \"https://git.kernel.org/stable/c/2d6a437064ffbe685c67ddb16dfc0946074c6c3f\"}, {\"url\": \"https://git.kernel.org/stable/c/b1756af172fb80a3edc143772d49e166ec691b6c\"}, {\"url\": \"https://git.kernel.org/stable/c/e7e76a77aabef8989cbc0a8417af1aa040620867\"}, {\"url\": \"https://git.kernel.org/stable/c/06c6ce21cec77dfa860d57e7a006000a57812efb\"}, {\"url\": \"https://git.kernel.org/stable/c/58143c1ed5882c138a3cd2251a336fc8755f23d9\"}], \"x_generator\": {\"engine\": \"bippy-c9c4e1df01b2\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\niio: health: afe4403: Fix oob read in afe4403_read_raw\\n\\nKASAN report out-of-bounds read as follows:\\n\\nBUG: KASAN: global-out-of-bounds in afe4403_read_raw+0x42e/0x4c0\\nRead of size 4 at addr ffffffffc02ac638 by task cat/279\\n\\nCall Trace:\\n afe4403_read_raw\\n iio_read_channel_info\\n dev_attr_show\\n\\nThe buggy address belongs to the variable:\\n afe4403_channel_leds+0x18/0xffffffffffffe9e0\\n\\nThis issue can be reproduced by singe command:\\n\\n $ cat /sys/bus/spi/devices/spi0.0/iio\\\\:device0/in_intensity6_raw\\n\\nThe array size of afe4403_channel_leds is less than channels, so access\\nwith chan-\u003eaddress cause OOB read in afe4403_read_raw. Fix it by moving\\naccess before use it.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-10-21T20:06:35.214Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-49031\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-10-22T13:18:35.737Z\", \"dateReserved\": \"2024-08-22T01:27:53.652Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T20:06:35.214Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…