{"id":"CVE-2022-50300","published":"2025-09-15T14:45:55Z","modified":"2026-08-05T08:58:04Z","title":"btrfs: fix extent map use-after-free when handling missing device in read_one_chunk","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix extent map use-after-free when handling missing device in read_one_chunk\n\nStore the error code before freeing the extent_map. Though it's\nreference counted structure, in that function it's the first and last\nallocation so this would lead to a potential use-after-free.\n\nThe error can happen eg. when chunk is stored on a missing device and\nthe degraded mount option is missing.\n\nBugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=216721","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00173,"percentile":0.06785,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b8e7ed42bc3ca0d0e4191ee394d34962d3624c22","tags":[]},{"url":"https://git.kernel.org/stable/c/fce3713197ebba239e1c7e02174ed216ea1ee014","tags":[]},{"url":"https://git.kernel.org/stable/c/169a4cf46882974d4db6d85eb623ec898e51bbc0","tags":[]},{"url":"https://git.kernel.org/stable/c/1742e1c90c3da344f3bb9b1f1309b3f47482756a","tags":[]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.36},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= adfb69af7d8cb6a3958f75aad1ef4bc96891d116, < b8e7ed42bc3ca0d0e4191ee394d34962d3624c22",">= adfb69af7d8cb6a3958f75aad1ef4bc96891d116, < fce3713197ebba239e1c7e02174ed216ea1ee014",">= adfb69af7d8cb6a3958f75aad1ef4bc96891d116, < 169a4cf46882974d4db6d85eb623ec898e51bbc0",">= adfb69af7d8cb6a3958f75aad1ef4bc96891d116, < 1742e1c90c3da344f3bb9b1f1309b3f47482756a"]},{"vendor":"Linux","product":"Linux","versions":["4.15"]}],"euvd":{"id":"EUVD-2022-55555","exploited":false,"provenance":"source"}}