Files
vuln-cve/data/2024/42xxx/CVE-2024-42314.json
T

227 lines
11 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2024-42314",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2024-07-30T07:40:12.277Z",
"datePublished": "2024-08-17T09:09:23.047Z",
"dateUpdated": "2026-08-05T11:36:36.342Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T11:36:36.342Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix extent map use-after-free when adding pages to compressed bio\n\nAt add_ra_bio_pages() we are accessing the extent map to calculate\n'add_size' after we dropped our reference on the extent map, resulting\nin a use-after-free. Fix this by computing 'add_size' before dropping our\nextent map reference."
}
],
"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 - btrfs is a local filesystem; the vulnerable readahead code is reached via a read() syscall on a compressed file, not over any network protocol.\nAC:L - The UAF requires the extent map to be freed concurrently (e.g. by the extent-map shrinker under memory pressure), but the attacker controls both the compressed reads and the memory pressure and can retry the race indefinitely.\nPR:L - Any local unprivileged user who can read a compressed file on a btrfs mount reaches this path; the user can create their own compressed file, so no elevated privileges are needed.\nUI:N - The attacker triggers the compressed reads and memory pressure themselves; no action by a separate victim is required.\nS:U - The use-after-free corrupts kernel slab memory within the kernel's own security authority; no boundary such as a VM or IOMMU is crossed.\nC:H - A use-after-free gives an attacker influence over the reallocated freed-object contents, which per kernel CNA guidance is treated as enabling arbitrary kernel memory disclosure.\nI:H - A use-after-free enables heap grooming and control over freed-object contents, treated as a High integrity impact for kernel memory corruption.\nA:H - The use-after-free readily causes kernel crashes/oops (KASAN, slab corruption), a High availability impact."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"fs/btrfs/compression.c"
],
"versions": [
{
"version": "6a4049102055250256623ab1875fabd89004bff8",
"lessThan": "c1cc3326e27b0bd7a2806b40bc48e49afaf951e7",
"status": "affected",
"versionType": "git"
},
{
"version": "6a4049102055250256623ab1875fabd89004bff8",
"lessThan": "c205565e0f2f439f278a4a94ee97b67ef7b56ae8",
"status": "affected",
"versionType": "git"
},
{
"version": "6a4049102055250256623ab1875fabd89004bff8",
"lessThan": "b7859ff398b6b656e1689daa860eb34837b4bb89",
"status": "affected",
"versionType": "git"
},
{
"version": "6a4049102055250256623ab1875fabd89004bff8",
"lessThan": "8e7860543a94784d744c7ce34b78a2e11beefa5c",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"fs/btrfs/compression.c"
],
"versions": [
{
"version": "5.16",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.16",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.1.108",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.6.44",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.10.3",
"lessThanOrEqual": "6.10.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.11",
"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.16",
"versionEndExcluding": "6.1.108"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.16",
"versionEndExcluding": "6.6.44"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.16",
"versionEndExcluding": "6.10.3"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.16",
"versionEndExcluding": "6.11"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/c1cc3326e27b0bd7a2806b40bc48e49afaf951e7"
},
{
"url": "https://git.kernel.org/stable/c/c205565e0f2f439f278a4a94ee97b67ef7b56ae8"
},
{
"url": "https://git.kernel.org/stable/c/b7859ff398b6b656e1689daa860eb34837b4bb89"
},
{
"url": "https://git.kernel.org/stable/c/8e7860543a94784d744c7ce34b78a2e11beefa5c"
}
],
"title": "btrfs: fix extent map use-after-free when adding pages to compressed bio",
"x_generator": {
"engine": "bippy-1.2.0"
}
},
"adp": [
{
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-42314",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-09-10T16:09:49.130519Z"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-09-12T17:33:04.999Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T22:04:34.301Z"
}
}
]
}
}