Files
vuln-cve/data/2024/40xxx/CVE-2024-40991.json
T

194 lines
10 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2024-40991",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2024-07-12T12:17:45.605Z",
"datePublished": "2024-07-12T12:37:35.138Z",
"dateUpdated": "2026-08-05T11:34:29.218Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T11:34:29.218Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: ti: k3-udma-glue: Fix of_k3_udma_glue_parse_chn_by_id()\n\nThe of_k3_udma_glue_parse_chn_by_id() helper function erroneously\ninvokes \"of_node_put()\" on the \"udmax_np\" device-node passed to it,\nwithout having incremented its reference count at any point. Fix it."
}
],
"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 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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/dma/ti/k3-udma-glue.c"
],
"versions": [
{
"version": "81a1f90f20af71728f900f245aa69e9425fdef84",
"lessThan": "a5ab5f413d1e4c7ed5f64271b025f0726374509e",
"status": "affected",
"versionType": "git"
},
{
"version": "81a1f90f20af71728f900f245aa69e9425fdef84",
"lessThan": "ba27e9d2207784da748b19170a2e56bd7770bd81",
"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/dma/ti/k3-udma-glue.c"
],
"versions": [
{
"version": "6.9",
"status": "affected"
},
{
"version": "0",
"lessThan": "6.9",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.9.7",
"lessThanOrEqual": "6.9.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.10",
"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": "6.9",
"versionEndExcluding": "6.9.7"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.9",
"versionEndExcluding": "6.10"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/a5ab5f413d1e4c7ed5f64271b025f0726374509e"
},
{
"url": "https://git.kernel.org/stable/c/ba27e9d2207784da748b19170a2e56bd7770bd81"
}
],
"title": "dmaengine: ti: k3-udma-glue: Fix of_k3_udma_glue_parse_chn_by_id()",
"x_generator": {
"engine": "bippy-1.2.0"
}
},
"adp": [
{
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T04:39:56.059Z"
},
"title": "CVE Program Container",
"references": [
{
"url": "https://git.kernel.org/stable/c/a5ab5f413d1e4c7ed5f64271b025f0726374509e",
"tags": [
"x_transferred"
]
},
{
"url": "https://git.kernel.org/stable/c/ba27e9d2207784da748b19170a2e56bd7770bd81",
"tags": [
"x_transferred"
]
}
]
},
{
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-40991",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-09-10T17:01:48.045329Z"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-09-11T17:34:20.263Z"
}
}
]
}
}