VDB

CVE-2022-49168

CVE-2022-49168 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
LinuxLinux8cbc3001a3264d998d6b6db3e23f935c158abd4d, 7170875083254b51fcc5d67f96640977083f481e, 3.18

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux6c387ab20db15f2bd448f7c508e2638101b16ea1, 6c387ab20db15f2bd448f7c508e2638101b16ea1, 6c387ab20db15f2bd448f7c508e2638101b16ea1
LinuxLinux3.18, 0, 5.10.248
LinuxLinux6c387ab20db15f2bd448f7c508e2638101b16ea1, 5.16.19, 6c387ab20db15f2bd448f7c508e2638101b16ea1
amazon:2kernel-headers0
amazon:2perf0
amazon:2kernel-devel0
amazon:2kernel-tools-devel0
amazon:2kernel-livepatch-4.14.355-277.6430
amazon:2kernel-tools0
amazon:2python-perf0
linuxlinux_kernel3.18, 3.18, 3.18
amazon:2kernel0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›