GHSA-852J-FQFH-MMQJ
Vulnerability from github – Published: 2026-10-18 18:31 – Updated: 2026-10-30 15:33In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ad_sigma_delta: fix use-after-free on unbind
ad_sd_buffer_postenable() allocates sigma_delta->samples_buf with devm_krealloc() at runtime, so its devres entry sits after all probe-time entries of the driver. devm resources are released in reverse allocation order, which means unbind frees samples_buf before iio_device_unregister() disables the buffers and detaches the trigger pollfunc. The data ready IRQ is still enabled at that point, so ad_sd_trigger_handler() can still run and memcpy() incoming samples into the freed samples_buf.
Fix this by preallocating the buffer in devm_ad_sd_setup_buffer_and_trigger(), before the triggered buffer and the IRQ are set up, so it is freed only after iio_device_unregister() has drained the trigger handler via free_irq(). Size it for the worst case of all sequencer slots being active; ad_sd_validate_scan_mask() already caps the number of active channels at num_slots.
This issue was found by an in-house static analysis tool.
{
"affected": [],
"aliases": [
"CVE-2026-98677"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-10-18T16:17:21Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: ad_sigma_delta: fix use-after-free on unbind\n\nad_sd_buffer_postenable() allocates sigma_delta-\u003esamples_buf with\ndevm_krealloc() at runtime, so its devres entry sits after all\nprobe-time entries of the driver. devm resources are released in\nreverse allocation order, which means unbind frees samples_buf before\niio_device_unregister() disables the buffers and detaches the trigger\npollfunc. The data ready IRQ is still enabled at that point, so\nad_sd_trigger_handler() can still run and memcpy() incoming samples\ninto the freed samples_buf.\n\nFix this by preallocating the buffer in\ndevm_ad_sd_setup_buffer_and_trigger(), before the triggered buffer and\nthe IRQ are set up, so it is freed only after iio_device_unregister()\nhas drained the trigger handler via free_irq(). Size it for the worst\ncase of all sequencer slots being active; ad_sd_validate_scan_mask()\nalready caps the number of active channels at num_slots.\n\nThis issue was found by an in-house static analysis tool.",
"id": "GHSA-852j-fqfh-mmqj",
"modified": "2026-10-30T15:33:55Z",
"published": "2026-10-18T18:31:59Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98677"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/5663c72bf400231e90777982216797191887a6b9"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/84500ae0d976995a6870cb1dca2d124b6b2d6e5a"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/975b09bc680acc60903777b766cdb53b0bf9c9f6"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/9ee8306121495d2a25aa5d1bfd519f2748786b83"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/b2a991d33f1e2207052fe745d1fe459db8b365e2"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/f20b94a7dc1ff9ade191ce839c984210fdbdc653"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
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.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.