CVE-2022-49168
btrfs: do not clean up repair bio if submit fails
Reported by linux · Published February 26, 2025
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 bio_endio() 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 BLK_STS_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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | 8cbc3001a3264d998d6b6db3e23f935c158abd4d, 7170875083254b51fcc5d67f96640977083f481e, 3.18 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 6c387ab20db15f2bd448f7c508e2638101b16ea1, 6c387ab20db15f2bd448f7c508e2638101b16ea1, 6c387ab20db15f2bd448f7c508e2638101b16ea1 |
| Linux | Linux | 3.18, 0, 5.10.248 |
| Linux | Linux | 6c387ab20db15f2bd448f7c508e2638101b16ea1, 5.16.19, 6c387ab20db15f2bd448f7c508e2638101b16ea1 |
| amazon:2 | kernel-headers | 0 |
| amazon:2 | perf | 0 |
| amazon:2 | kernel-devel | 0 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2 | kernel-livepatch-4.14.355-277.643 | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | python-perf | 0 |
| linux | linux_kernel | 3.18, 3.18, 3.18 |
| amazon:2 | kernel | 0 |
Timeline
- Feb 26, 2025 CVE Published
- Feb 27, 2025 EPSS Score (30 in total, the first dated here)
- May 23, 2026 Coalition ESS Score
- Jun 2, 2026 Security Advisory (54 in total, the first dated here)
- Nov 20, 2026 PoC Published
- Nov 21, 2026 Distribution Patch (53 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-49168
vulnetix vdb fixes CVE-2022-49168
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-49168/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart