CVE-2024-40991
published high CVSS 3.1 · 7.8dmaengine: ti: k3-udma-glue: Fix of_k3_udma_glue_parse_chn_by_id()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux81a1f90f20af71728f900f245aa69e9425fdef84 to < a5ab5f413d1e4c7ed5f64271b025f0726374509e · 81a1f90f20af71728f900f245aa69e9425fdef84 to < ba27e9d2207784da748b19170a2e56bd7770bd81 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.9.7 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: ti: k3-udma-glue: Fix of_k3_udma_glue_parse_chn_by_id() The of_k3_udma_glue_parse_chn_by_id() helper function erroneously invokes "of_node_put()" on the "udmax_np" device-node passed to it, without having incremented its reference count at any point. Fix it.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable helper is only reachable from the k3-udma-glue channel-request API invoked during driver probe on TI K3 SoCs; there is no network, packet-receive, or remote-peer data path to it. Repetition requires local actions such as driver bind/unbind or module reload, so local access is the applicable vector. AC:L - The unbalanced of_node_put() executes unconditionally on every call path, success and failure alike, with no race to win and no memory-layout precondition the attacker cannot influence. Each invocation — including every deferred-probe retry — deterministically drops one reference. PR:L - No capability check, credential test, or access-control gate exists anywhere between the entry point and the underflow, and the reference is dropped automatically during boot-time probe without any privileged action being needed to create the condition. Choosing the higher-severity reading, a basic local user rather than real root is treated as sufficient. UI:N - The refcount underflow happens inside the driver's own probe/channel-request flow with no victim action required — no filesystem mount, file open, or device attach by another user is part of the trigger. S:U - The corrupted object is a kernel OF device_node, and all consequences — the erroneous release, the refcount saturation warning, and any subsequent use-after-free — remain within the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - The immediate of_node_release() failure path dumps a kernel stack trace exposing addresses and symbols, and on DT-overlay-based K3 platforms the premature refcount-zero permits the node to be freed while still referenced, yielding a use-after-free read primitive over device_node contents. Per use-after-free guidance this is High. I:H - A device_node freed while other subsystems retain pointers is a classic heap-spray target whose properties, full_name, and data pointers are written through, converting the underflow into an arbitrary-write and control-flow-hijack primitive. Use-after-free is scored High for integrity. A:H - The underflow reaches refcount_warn_saturate() with the "refcount_t: underflow; use-after-free" splat, which is a fatal panic under panic_on_warn or CONFIG_BUG_ON_DATA_CORRUPTION, and the resulting use-after-free causes kernel oopses even when not weaponized.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 81a1f90f20af71728f900f245aa69e9425fdef84 to < a5ab5f413d1e4c7ed5f64271b025f0726374509e (affected · git)81a1f90f20af71728f900f245aa69e9425fdef84 to < ba27e9d2207784da748b19170a2e56bd7770bd81 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.9.7 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
dmaengine: ti: k3-udma-glue: Fix of_k3_udma_glue_parse_chn_by_id()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bc27c199a8b37582143bbf12f5aa52e7473646ec2206deaf193a2b1eabbb7bec
- Ingested
- 23 Sep 2026, 08:26:02 UTC
- Source record
- Official CVE record