CVE-2022-49168

Source
https://cve.org/CVERecord?id=CVE-2022-49168
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49168.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49168
Downstream
Related
Published
2025-02-26T01:55:26.532Z
Modified
2026-03-12T03:24:44.218741Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
btrfs: do not clean up repair bio if submit fails
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: do not clean up repair bio if submit fails

The submit helper will always run bioendio() on the bio if it fails to submit, so cleaning up the bio just leads to a variety of use-after-free and NULL pointer dereference bugs because we race with the endio function that is cleaning up the bio. Instead just return BLKSTS_OK as the repair function has to continue to process the rest of the pages, and the endio for the repair bio will do the appropriate cleanup for the page that it was given.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49168.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6c387ab20db15f2bd448f7c508e2638101b16ea1
Fixed
e7e1d15d2bd8c373cf621614ddd17971a2132713
Fixed
7170875083254b51fcc5d67f96640977083f481e
Fixed
e76c78c48902dae6fa612749f59162bca0a79e0b
Fixed
d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14
Fixed
8cbc3001a3264d998d6b6db3e23f935c158abd4d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49168.json"