{"id":"CVE-2022-50300","aliases":["CVE-2022-50300"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix extent map use-after-free when handling missing device in read_one_chunk","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"}],"published":"2025-09-15T14:45:55.896Z","modified":"2026-08-05T08:58:04.535Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"adfb69af7d8cb6a3958f75aad1ef4bc96891d116","fixed":"b8e7ed42bc3ca0d0e4191ee394d34962d3624c22","status":"affected"},{"type":"git","introduced":"adfb69af7d8cb6a3958f75aad1ef4bc96891d116","fixed":"fce3713197ebba239e1c7e02174ed216ea1ee014","status":"affected"},{"type":"git","introduced":"adfb69af7d8cb6a3958f75aad1ef4bc96891d116","fixed":"169a4cf46882974d4db6d85eb623ec898e51bbc0","status":"affected"},{"type":"git","introduced":"adfb69af7d8cb6a3958f75aad1ef4bc96891d116","fixed":"1742e1c90c3da344f3bb9b1f1309b3f47482756a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"5.15.87","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.18","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.4","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.15","fixed":"5.15.87"},{"status":"affected","introduced":"5.16","fixed":"6.0.18"},{"status":"affected","introduced":"6.1","fixed":"6.1.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b8e7ed42bc3ca0d0e4191ee394d34962d3624c22","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fce3713197ebba239e1c7e02174ed216ea1ee014","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/169a4cf46882974d4db6d85eb623ec898e51bbc0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1742e1c90c3da344f3bb9b1f1309b3f47482756a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50300","url":"https://www.cve.org/CVERecord?id=CVE-2022-50300","licence":"CVE Terms of Use","modified":"2026-08-05T08:58:04.535Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50300","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50300","licence":"Public domain","modified":"2026-08-04T10:18:10.140Z"}],"updatedAt":"2026-11-25T22:58:21.154Z","epss":{"score":0.00173,"percentile":0.07021,"date":"2026-12-01T12:00:22.000Z"}}