Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-50300

published high CVSS 3.1 · 7.8

btrfs: fix extent map use-after-free when handling missing device in read_one_chunk

Published
15 Sep 2025, 14:45:55 UTC
Updated
05 Aug 2026, 08:58:04 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxadfb69af7d8cb6a3958f75aad1ef4bc96891d116 to < b8e7ed42bc3ca0d0e4191ee394d34962d3624c22 · adfb69af7d8cb6a3958f75aad1ef4bc96891d116 to < fce3713197ebba239e1c7e02174ed216ea1ee014 · adfb69af7d8cb6a3958f75aad1ef4bc96891d116 to < 169a4cf46882974d4db6d85eb623ec898e51bbc0 · adfb69af7d8cb6a3958f75aad1ef4bc96891d116 to < 1742e1c90c3da344f3bb9b1f1309b3f47482756a · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.15 (affected) · 0 to < 4.15 (unaffected · semver) · 5.15.87 through 5.15.* (unaffected · semver) · 6.0.18 through 6.0.* (unaffected · semver) · 6.1.4 through 6.1.* (unaffected · semver) · 6.2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected; No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2023-013 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-013
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-013
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.15-2023-013
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-013

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix extent map use-after-free when handling missing device in read_one_chunk Store the error code before freeing the extent_map. Though it's reference counted structure, in that function it's the first and last allocation so this would lead to a potential use-after-free. The error can happen eg. when chunk is stored on a missing device and the degraded mount option is missing. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=216721

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

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:N/UI:R/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable path runs only during btrfs mount (open_ctree → btrfs_read_sys_array/btrfs_read_chunk_tree → read_one_chunk), reached via a local mount of a crafted or incomplete multi-device image, not via network packet processing. AC:L - An attacker can reliably trigger the UAF by supplying a filesystem whose chunk stripe references a missing device and ensuring mount without the non-default degraded option; the freshly allocated extent_map always has refcount 1 so free_extent_map unconditionally frees map before the PTR_ERR read. PR:N - btrfs lacks FS_USERNS_MOUNT so the attacker need not hold privileges on the victim host; crafting and delivering a malicious image (USB, download, shared disk) is sufficient, matching other mount-time filesystem UAF scores. UI:R - Exploitation requires a user or administrator to mount the attacker-controlled btrfs image, which is the necessary interaction that enters open_ctree and reaches read_one_chunk. S:U - Impact is confined to kernel memory in the host's btrfs mount path; this is standard kernel memory corruption without crossing a VM, IOMMU, or other security authority boundary. C:H - This is a genuine use-after-free of the kmalloc'd map_lookup and extent_map objects; per CVSS kernel guidance a UAF enables reclaim and disclosure of freed object contents for arbitrary kernel memory read. I:H - Use-after-free of heap objects during mount enables heap grooming and write/control-flow primitives once the freed map_lookup/extent_map slabs are reused, so integrity impact is High. A:H - The UAF on freed map_lookup memory can cause kernel oops/panic (including via inconsistent mount continuation if a reused object yields a misleading return code), so availability impact is High.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux adfb69af7d8cb6a3958f75aad1ef4bc96891d116 to < b8e7ed42bc3ca0d0e4191ee394d34962d3624c22 (affected · git)adfb69af7d8cb6a3958f75aad1ef4bc96891d116 to < fce3713197ebba239e1c7e02174ed216ea1ee014 (affected · git)adfb69af7d8cb6a3958f75aad1ef4bc96891d116 to < 169a4cf46882974d4db6d85eb623ec898e51bbc0 (affected · git)adfb69af7d8cb6a3958f75aad1ef4bc96891d116 to < 1742e1c90c3da344f3bb9b1f1309b3f47482756a (affected · git)Default: unaffected Linux · cna
Linux Linux 4.15 (affected)0 to < 4.15 (unaffected · semver)5.15.87 through 5.15.* (unaffected · semver)6.0.18 through 6.0.* (unaffected · semver)6.1.4 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

btrfs: fix extent map use-after-free when handling missing device in read_one_chunk

Provenance

Schema
5.2
Searchable
yes
Content hash
e57980a08db8bd0f76b39f4bad03101949c97fc5898e0728a533f38969bd5f00
Ingested
23 Sep 2026, 08:04:48 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected