CVE-2022-49032 (GCVE-0-2022-49032)

Vulnerability from cvelistv5 – Published: 2024-10-21 20:06 – Updated: 2025-05-04 08:28
VLAI?
Title
iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw
Summary
In the Linux kernel, the following vulnerability has been resolved: iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw KASAN report out-of-bounds read as follows: BUG: KASAN: global-out-of-bounds in afe4404_read_raw+0x2ce/0x380 Read of size 4 at addr ffffffffc00e4658 by task cat/278 Call Trace: afe4404_read_raw iio_read_channel_info dev_attr_show The buggy address belongs to the variable: afe4404_channel_leds+0x18/0xffffffffffffe9c0 This issue can be reproduce by singe command: $ cat /sys/bus/i2c/devices/0-0058/iio\:device0/in_intensity6_raw The array size of afe4404_channel_leds and afe4404_channel_offdacs are less than channels, so access with chan->address cause OOB read in afe4404_[read|write]_raw. Fix it by moving access before use them.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: b36e8257641a043764c62240316610c81e36376c , < 68de7da092f38395dde523f2e5db26eba6c23e28 (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < 113c08030a89aaf406f8a1d4549d758a67c2afba (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < f5575041ec15310bdc50c42b8b22118cc900226e (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < 3f566b626029ca8598d48e5074e56bb37399ca1b (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < 5eb114f55b37dbc0487aa9c1913b81bb7837f1c4 (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < f7419fc42afc035f6b29ce713e17dcd2000c833f (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < d45d9f45e7b1365fd0d9bf14680d6d5082a590d1 (git)
Affected: b36e8257641a043764c62240316610c81e36376c , < fc92d9e3de0b2d30a3ccc08048a5fad533e4672b (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-49032",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-22T13:11:06.095851Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-22T13:18:35.607Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/health/afe4404.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "68de7da092f38395dde523f2e5db26eba6c23e28",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "113c08030a89aaf406f8a1d4549d758a67c2afba",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "f5575041ec15310bdc50c42b8b22118cc900226e",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "3f566b626029ca8598d48e5074e56bb37399ca1b",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "5eb114f55b37dbc0487aa9c1913b81bb7837f1c4",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "f7419fc42afc035f6b29ce713e17dcd2000c833f",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "d45d9f45e7b1365fd0d9bf14680d6d5082a590d1",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            },
            {
              "lessThan": "fc92d9e3de0b2d30a3ccc08048a5fad533e4672b",
              "status": "affected",
              "version": "b36e8257641a043764c62240316610c81e36376c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/health/afe4404.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: afe4404: Fix oob read in afe4404_[read|write]_raw\n\nKASAN report out-of-bounds read as follows:\n\nBUG: KASAN: global-out-of-bounds in afe4404_read_raw+0x2ce/0x380\nRead of size 4 at addr ffffffffc00e4658 by task cat/278\n\nCall Trace:\n afe4404_read_raw\n iio_read_channel_info\n dev_attr_show\n\nThe buggy address belongs to the variable:\n afe4404_channel_leds+0x18/0xffffffffffffe9c0\n\nThis issue can be reproduce by singe command:\n\n $ cat /sys/bus/i2c/devices/0-0058/iio\\:device0/in_intensity6_raw\n\nThe array size of afe4404_channel_leds and afe4404_channel_offdacs\nare less than channels, so access with chan-\u003eaddress cause OOB read\nin afe4404_[read|write]_raw. Fix it by moving access before use them."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:28:28.046Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/68de7da092f38395dde523f2e5db26eba6c23e28"
        },
        {
          "url": "https://git.kernel.org/stable/c/113c08030a89aaf406f8a1d4549d758a67c2afba"
        },
        {
          "url": "https://git.kernel.org/stable/c/f5575041ec15310bdc50c42b8b22118cc900226e"
        },
        {
          "url": "https://git.kernel.org/stable/c/3f566b626029ca8598d48e5074e56bb37399ca1b"
        },
        {
          "url": "https://git.kernel.org/stable/c/5eb114f55b37dbc0487aa9c1913b81bb7837f1c4"
        },
        {
          "url": "https://git.kernel.org/stable/c/f7419fc42afc035f6b29ce713e17dcd2000c833f"
        },
        {
          "url": "https://git.kernel.org/stable/c/d45d9f45e7b1365fd0d9bf14680d6d5082a590d1"
        },
        {
          "url": "https://git.kernel.org/stable/c/fc92d9e3de0b2d30a3ccc08048a5fad533e4672b"
        }
      ],
      "title": "iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49032",
    "datePublished": "2024-10-21T20:06:35.864Z",
    "dateReserved": "2024-08-22T01:27:53.652Z",
    "dateUpdated": "2025-05-04T08:28:28.046Z",
    "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-49032\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:11:06.095851Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:11:09.285Z\"}}], \"cna\": {\"title\": \"iio: health: afe4404: Fix oob read in afe4404_[read|write]_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\": \"68de7da092f3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"113c08030a89\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"f5575041ec15\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"3f566b626029\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"5eb114f55b37\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"f7419fc42afc\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"d45d9f45e7b1\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b36e8257641a\", \"lessThan\": \"fc92d9e3de0b\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/iio/health/afe4404.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/afe4404.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/68de7da092f38395dde523f2e5db26eba6c23e28\"}, {\"url\": \"https://git.kernel.org/stable/c/113c08030a89aaf406f8a1d4549d758a67c2afba\"}, {\"url\": \"https://git.kernel.org/stable/c/f5575041ec15310bdc50c42b8b22118cc900226e\"}, {\"url\": \"https://git.kernel.org/stable/c/3f566b626029ca8598d48e5074e56bb37399ca1b\"}, {\"url\": \"https://git.kernel.org/stable/c/5eb114f55b37dbc0487aa9c1913b81bb7837f1c4\"}, {\"url\": \"https://git.kernel.org/stable/c/f7419fc42afc035f6b29ce713e17dcd2000c833f\"}, {\"url\": \"https://git.kernel.org/stable/c/d45d9f45e7b1365fd0d9bf14680d6d5082a590d1\"}, {\"url\": \"https://git.kernel.org/stable/c/fc92d9e3de0b2d30a3ccc08048a5fad533e4672b\"}], \"x_generator\": {\"engine\": \"bippy-c9c4e1df01b2\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\niio: health: afe4404: Fix oob read in afe4404_[read|write]_raw\\n\\nKASAN report out-of-bounds read as follows:\\n\\nBUG: KASAN: global-out-of-bounds in afe4404_read_raw+0x2ce/0x380\\nRead of size 4 at addr ffffffffc00e4658 by task cat/278\\n\\nCall Trace:\\n afe4404_read_raw\\n iio_read_channel_info\\n dev_attr_show\\n\\nThe buggy address belongs to the variable:\\n afe4404_channel_leds+0x18/0xffffffffffffe9c0\\n\\nThis issue can be reproduce by singe command:\\n\\n $ cat /sys/bus/i2c/devices/0-0058/iio\\\\:device0/in_intensity6_raw\\n\\nThe array size of afe4404_channel_leds and afe4404_channel_offdacs\\nare less than channels, so access with chan-\u003eaddress cause OOB read\\nin afe4404_[read|write]_raw. Fix it by moving access before use them.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-10-21T20:06:35.864Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-49032\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-10-22T13:18:35.607Z\", \"dateReserved\": \"2024-08-22T01:27:53.652Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T20:06:35.864Z\", \"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…