{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-56557", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-12-27T14:03:05.992Z", "datePublished": "2024-12-27T14:23:03.251Z", "dateUpdated": "2026-08-05T11:45:05.174Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:45:05.174Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: ad7923: Fix buffer overflow for tx_buf and ring_xfer\n\nThe AD7923 was updated to support devices with 8 channels, but the size\nof tx_buf and ring_xfer was not increased accordingly, leading to a\npotential buffer overflow in ad7923_update_scan_mode()." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:L - The overflow is reached only through local sysfs writes on the IIO device (`scan_elements/in_voltageN_en` then `buffer/enable`), which drive `iio_enable_buffers()` into `ad7923_update_scan_mode()`. No remote or adjacent network data reaches this code, and no physical access to the board is required.\nAC:L - The attacker fully controls the trigger — enabling five or more scan elements on an ad7908/ad7918/ad7928 and starting the buffer deterministically overflows `tx_buf` and `ring_xfer` on the first attempt, with no race to win and no state the attacker cannot set.\nPR:L - Nothing on the path checks any capability; only sysfs file permissions gate it, and on the embedded/industrial/Android systems where these SPI ADCs are deployed the IIO nodes are routinely handed to a non-root sensor or data-acquisition user or group by udev/ueventd rules. This matches the established scoring of the other IIO triggered-buffer CVEs reachable through the same interface.\nUI:N - The attacker performs the entire sequence — enabling scan elements, attaching a trigger, enabling the buffer — from their own process, and no other user needs to act.\nS:U - The corruption is confined to kernel heap memory managed by the same kernel that contains the flaw, with no crossing of a hypervisor, IOMMU, or other security-authority boundary.\nC:H - The overflow overwrites `spi_message`/`spi_transfer` fields, so `spi_sync()` walks a corrupted transfer list and honors `tx_buf`/`rx_buf`/`len` values taken from smashed memory, and the resulting heap corruption is a general primitive that can be groomed into arbitrary kernel-memory disclosure.\nI:H - This is an out-of-bounds heap write of hundreds of bytes past `ring_xfer[4]`, including pointer values, that also clobbers `ring_msg.transfers.prev` mid-construction so `list_add_tail()` writes kernel pointers through an attacker-influenced address — a classic corruption-to-control-flow path.\nA:H - The clobbered `spi_message` list is immediately traversed by `spi_sync()` in `ad7923_trigger_handler()`, dereferencing wild `transfer_list` links, and the write past the end of the `iio_priv()` allocation corrupts adjacent slab state — a repeatable kernel oops or panic." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/iio/adc/ad7923.c" ], "versions": [ { "version": "851644a60d200c9a294de5a5594004bcf13d34c7", "lessThan": "6e4d236d9c4b38571c394d3ab6e85dfb71c33ed3", "status": "affected", "versionType": "git" }, { "version": "851644a60d200c9a294de5a5594004bcf13d34c7", "lessThan": "00663d3e000c31d0d49ef86a809f5c107c2d09cd", "status": "affected", "versionType": "git" }, { "version": "851644a60d200c9a294de5a5594004bcf13d34c7", "lessThan": "e5cac32721997cb8bcb208a29f4598b3faf46338", "status": "affected", "versionType": "git" }, { "version": "851644a60d200c9a294de5a5594004bcf13d34c7", "lessThan": "218ecc35949129171ca39bcc0d407c8dc4cd0bbc", "status": "affected", "versionType": "git" }, { "version": "851644a60d200c9a294de5a5594004bcf13d34c7", "lessThan": "3a4187ec454e19903fd15f6e1825a4b84e59a4cd", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/iio/adc/ad7923.c" ], "versions": [ { "version": "5.6", "status": "affected" }, { "version": "0", "lessThan": "5.6", "status": "unaffected", "versionType": "semver" }, { "version": "5.15.203", "lessThanOrEqual": "5.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.120", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.64", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.4", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.13", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.6", "versionEndExcluding": "5.15.203" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.6", "versionEndExcluding": "6.1.120" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.6", "versionEndExcluding": "6.6.64" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.6", "versionEndExcluding": "6.12.4" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.6", "versionEndExcluding": "6.13" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/6e4d236d9c4b38571c394d3ab6e85dfb71c33ed3" }, { "url": "https://git.kernel.org/stable/c/00663d3e000c31d0d49ef86a809f5c107c2d09cd" }, { "url": "https://git.kernel.org/stable/c/e5cac32721997cb8bcb208a29f4598b3faf46338" }, { "url": "https://git.kernel.org/stable/c/218ecc35949129171ca39bcc0d407c8dc4cd0bbc" }, { "url": "https://git.kernel.org/stable/c/3a4187ec454e19903fd15f6e1825a4b84e59a4cd" } ], "title": "iio: adc: ad7923: Fix buffer overflow for tx_buf and ring_xfer", "x_generator": { "engine": "bippy-1.2.0" } }, "adp": [ { "metrics": [ { "cvssV3_1": { "scope": "UNCHANGED", "version": "3.1", "baseScore": 5.5, "attackVector": "LOCAL", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "integrityImpact": "NONE", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "LOW", "confidentialityImpact": "NONE" } }, { "other": { "type": "ssvc", "content": { "id": "CVE-2024-56557", "role": "CISA Coordinator", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "version": "2.0.3", "timestamp": "2025-02-18T16:03:56.635182Z" } } } ], "problemTypes": [ { "descriptions": [ { "lang": "en", "type": "CWE", "cweId": "CWE-120", "description": "CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')" } ] } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2025-02-18T16:06:09.556Z" } }, { "title": "CVE Program Container", "references": [ { "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html" } ], "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2025-11-03T20:49:26.305Z" } } ] } }