161 lines
8.9 KiB
JSON
161 lines
8.9 KiB
JSON
{
|
|
"dataType": "CVE_RECORD",
|
|
"dataVersion": "5.2",
|
|
"cveMetadata": {
|
|
"cveId": "CVE-2022-49167",
|
|
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
|
"state": "PUBLISHED",
|
|
"assignerShortName": "Linux",
|
|
"dateReserved": "2025-02-26T01:49:39.278Z",
|
|
"datePublished": "2025-02-26T01:55:26.030Z",
|
|
"dateUpdated": "2026-08-05T08:54:11.254Z"
|
|
},
|
|
"containers": {
|
|
"cna": {
|
|
"providerMetadata": {
|
|
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
|
"shortName": "Linux",
|
|
"dateUpdated": "2026-08-05T08:54:11.254Z"
|
|
},
|
|
"descriptions": [
|
|
{
|
|
"lang": "en",
|
|
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: do not double complete bio on errors during compressed reads\n\nI hit some weird panics while fixing up the error handling from\nbtrfs_lookup_bio_sums(). Turns out the compression path will complete\nthe bio we use if we set up any of the compression bios and then return\nan error, and then btrfs_submit_data_bio() will also call bio_endio() on\nthe bio.\n\nFix this by making btrfs_submit_compressed_read() responsible for\ncalling bio_endio() on the bio if there are any errors. Currently it\nwas only doing it if we created the compression bios, otherwise it was\ndepending on btrfs_submit_data_bio() to do the right thing. This\ncreates the above problem, so fix up btrfs_submit_compressed_read() to\nalways call bio_endio() in case of an error, and then simply return from\nbtrfs_submit_data_bio() if we had to call\nbtrfs_submit_compressed_read()."
|
|
}
|
|
],
|
|
"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 bug is in btrfs compressed buffered-read submission (read → extent_io → submit_one_bio → btrfs_submit_data_bio → btrfs_submit_compressed_read), reachable only via local VFS reads of compressed extents on a mounted btrfs filesystem, not via network protocol handlers.\nAC:L - An attacker who can read compressed files can drive the finish_cb error path (e.g., by inducing ENOMEM in btrfs_lookup_bio_sums/alloc_compressed_bio after pages are allocated); no victim-controlled race or rare non-default config is required.\nPR:L - An unprivileged local user can create compressed files (mount compress= or chattr +c) and read them on an already-mounted btrfs volume; no real root or init-namespace admin capability is required.\nUI:N - Exploitation needs no separate victim action once btrfs is mounted; the attacker triggers the path by reading their own compressed files (and optionally stressing memory).\nS:U - Impact stays within the local kernel/OS security authority (standard kernel memory corruption / DoS); there is no VM escape, IOMMU bypass, or other cross-boundary effect.\nC:H - Double bio_endio after end_bio_extent_readpage's bio_put is a use-after-free of the bio (bioset object), which per UAF guidance enables reclaim and arbitrary read primitives.\nI:H - The same bio UAF/double-free, plus re-entry into page unlock/extent-release paths on already-completed state, is memory corruption that can be leveraged for write primitives and control-flow hijacking.\nA:H - The author observed kernel panics from the double completion; UAF/double bio_put and double page unlock reliably cause oops/panic or equivalent denial of service."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"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",
|
|
"fs/btrfs/inode.c"
|
|
],
|
|
"versions": [
|
|
{
|
|
"version": "86ccbb4d2a2af4109430df518c995a4f7d14dfd2",
|
|
"lessThan": "4a4ceb2b990771c374d85d496a1a45255dde48e3",
|
|
"status": "affected",
|
|
"versionType": "git"
|
|
},
|
|
{
|
|
"version": "86ccbb4d2a2af4109430df518c995a4f7d14dfd2",
|
|
"lessThan": "987b5df1d10355d377315a26e7fb6c72ded83c9f",
|
|
"status": "affected",
|
|
"versionType": "git"
|
|
},
|
|
{
|
|
"version": "86ccbb4d2a2af4109430df518c995a4f7d14dfd2",
|
|
"lessThan": "f9f15de85d74e7eef021af059ca53a15f041cdd8",
|
|
"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",
|
|
"fs/btrfs/inode.c"
|
|
],
|
|
"versions": [
|
|
{
|
|
"version": "5.16",
|
|
"status": "affected"
|
|
},
|
|
{
|
|
"version": "0",
|
|
"lessThan": "5.16",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "5.16.19",
|
|
"lessThanOrEqual": "5.16.*",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "5.17.2",
|
|
"lessThanOrEqual": "5.17.*",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "5.18",
|
|
"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": "5.16.19"
|
|
},
|
|
{
|
|
"vulnerable": true,
|
|
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
|
"versionStartIncluding": "5.16",
|
|
"versionEndExcluding": "5.17.2"
|
|
},
|
|
{
|
|
"vulnerable": true,
|
|
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
|
"versionStartIncluding": "5.16",
|
|
"versionEndExcluding": "5.18"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/4a4ceb2b990771c374d85d496a1a45255dde48e3"
|
|
},
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/987b5df1d10355d377315a26e7fb6c72ded83c9f"
|
|
},
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/f9f15de85d74e7eef021af059ca53a15f041cdd8"
|
|
}
|
|
],
|
|
"title": "btrfs: do not double complete bio on errors during compressed reads",
|
|
"x_generator": {
|
|
"engine": "bippy-1.2.0"
|
|
}
|
|
}
|
|
}
|
|
} |