CVE-2022-49168
published high CVSS 3.1 · 7.8btrfs: do not clean up repair bio if submit fails
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux6c387ab20db15f2bd448f7c508e2638101b16ea1 to < e7e1d15d2bd8c373cf621614ddd17971a2132713 · 6c387ab20db15f2bd448f7c508e2638101b16ea1 to < 7170875083254b51fcc5d67f96640977083f481e · 6c387ab20db15f2bd448f7c508e2638101b16ea1 to < e76c78c48902dae6fa612749f59162bca0a79e0b · 6c387ab20db15f2bd448f7c508e2638101b16ea1 to < d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14 · 6c387ab20db15f2bd448f7c508e2638101b16ea1 to < 8cbc3001a3264d998d6b6db3e23f935c158abd4d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.18 (affected) · 0 to < 3.18 (unaffected · semver) · 5.10.248 through 5.10.* (unaffected · semver) · 5.15.184 through 5.15.* (unaffected · semver) · 5.16.19 through 5.16.* (unaffected · semver) · 5.17.2 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2854 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2025-091 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2025-071 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2025-101 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | linux | Advisory build | 5.10.249-1 | DLA-4475-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1088.95~20.04.1 | USN-7654-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_261-defaultppc64le | Advisory build | 1-8.3.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_261-defaults390x | Advisory build | 1-8.3.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_261-defaultx86_64 | Advisory build | 1-8.3.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.261.1 | SUSE-SU-2025:01983-1 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1088 | Advisory build | 5.15.0-1088.95~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1088 | Advisory build | 5.15.0-1088.95~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1088 | Advisory build | 5.15.0-1088.95~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1094.103~20.04.1 | USN-7712-2 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1094 | Advisory build | 5.15.0-1094.103~20.04.1 | USN-7712-2 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1094 | Advisory build | 5.15.0-1094.103~20.04.1 | USN-7712-2 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1094 | Advisory build | 5.15.0-1094.103~20.04.1 | USN-7712-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1041-nvidia-tegra | Advisory build | 5.15.0-1041.41~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1041-nvidia-tegra-rt | Advisory build | 5.15.0-1041.41~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1080-ibm | Advisory build | 5.15.0-1080.83~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1083-intel-iotg | Advisory build | 5.15.0-1083.89~20.04.1 | USN-7655-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1085-oracle | Advisory build | 5.15.0-1085.91~20.04.3 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1087-gcp | Advisory build | 5.15.0-1087.96~20.04.2 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1088-aws | Advisory build | 5.15.0-1088.95~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1094-azure | Advisory build | 5.15.0-1094.103~20.04.1 | USN-7712-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-144-generic | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-144-generic-64k | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-144-generic-lpae | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-144-lowlatency | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-144-lowlatency-64k | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1083-intel-iotg | Advisory build | 5.15.0-1083.89~20.04.1 | USN-7655-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1088-aws | Advisory build | 5.15.0-1088.95~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1094-azure | Advisory build | 5.15.0-1094.103~20.04.1 | USN-7712-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-144-generic | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-144-lowlatency | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1087.96~20.04.2 | USN-7654-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1087 | Advisory build | 5.15.0-1087.96~20.04.2 | USN-7654-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1087 | Advisory build | 5.15.0-1087.96~20.04.2 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-1041-nvidia-tegra | Advisory build | 5.15.0-1041.41~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-1041-nvidia-tegra-rt | Advisory build | 5.15.0-1041.41~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-1080-ibm | Advisory build | 5.15.0-1080.83~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-1083-intel-iotg | Advisory build | 5.15.0-1083.89~20.04.1 | USN-7655-1 |
| Ubuntu | focal | linux-headers-5.15.0-1085-oracle | Advisory build | 5.15.0-1085.91~20.04.3 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-1087-gcp | Advisory build | 5.15.0-1087.96~20.04.2 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-1088-aws | Advisory build | 5.15.0-1088.95~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-1094-azure | Advisory build | 5.15.0-1094.103~20.04.1 | USN-7712-2 |
| Ubuntu | focal | linux-headers-5.15.0-144-generic | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-144-generic-64k | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-144-generic-lpae | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-144-lowlatency | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-headers-5.15.0-144-lowlatency-64k | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-144 | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-144 | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-144 | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1080.83~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1080 | Advisory build | 5.15.0-1080.83~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1080.83~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1080 | Advisory build | 5.15.0-1080.83~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-image-5.15.0-144-generic | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-image-5.15.0-144-generic-lpae | Advisory build | 5.15.0-144.157~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1041-nvidia-tegra | Advisory build | 5.15.0-1041.41~20.04.1 | USN-7654-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1041-nvidia-tegra-rt | Advisory build | 5.15.0-1041.41~20.04.1 | USN-7654-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is in btrfs read-repair (`btrfs_repair_one_sector` via buffered `end_bio_extent_readpage`/`submit_read_repair` or DIO `btrfs_check_read_dio_bio`), reached only through local VFS reads on a mounted btrfs volume, not through a network protocol handler. AC:L - On a multi-copy deployment (RAID1/DUP/RAID10—reasonable for btrfs), once repair runs, a failing `btrfs_submit_data_bio` (e.g. ENOMEM in `btrfs_bio_wq_end_io`) deterministically double-frees via `bio_endio` plus `free_io_failure`/`bio_put`; the attacker can drive memory pressure and does not need an uncontrolled race to hit the UAF. PR:L - An unprivileged local user who can read files on an already-mounted multi-copy btrfs filesystem can exercise the repair path; btrfs is not user-ns mountable here, but no real root/init-namespace admin capability is required to trigger the bug. UI:N - No separate victim action is required once the filesystem is mounted; the attacker triggers the path by reading (and optionally stressing memory) without needing another user to open or mount anything. S:U - Impact remains within the local kernel/OS authority as standard kernel memory corruption/DoS; there is no VM escape, IOMMU bypass, or other cross-boundary effect. C:H - Double cleanup yields use-after-free of the repair bio and/or `io_failure_record` (via `bio_put` and `kfree` in `free_io_failure` while endio also tears them down), which enables reclaim and arbitrary read primitives. I:H - The same bio/failrec UAF and concurrent endio cleanup is heap memory corruption that can be leveraged for write primitives and control-flow hijacking. A:H - The commit documents UAF and NULL dereferences from racing endio cleanup; double `bio_put`/`free_io_failure` reliably causes kernel oops/panic or equivalent denial of service.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 6c387ab20db15f2bd448f7c508e2638101b16ea1 to < e7e1d15d2bd8c373cf621614ddd17971a2132713 (affected · git)6c387ab20db15f2bd448f7c508e2638101b16ea1 to < 7170875083254b51fcc5d67f96640977083f481e (affected · git)6c387ab20db15f2bd448f7c508e2638101b16ea1 to < e76c78c48902dae6fa612749f59162bca0a79e0b (affected · git)6c387ab20db15f2bd448f7c508e2638101b16ea1 to < d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14 (affected · git)6c387ab20db15f2bd448f7c508e2638101b16ea1 to < 8cbc3001a3264d998d6b6db3e23f935c158abd4d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.18 (affected)0 to < 3.18 (unaffected · semver)5.10.248 through 5.10.* (unaffected · semver)5.15.184 through 5.15.* (unaffected · semver)5.16.19 through 5.16.* (unaffected · semver)5.17.2 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
5- https://git.kernel.org/stable/c/7170875083254b51fcc5d67f96640977083f481e
- https://git.kernel.org/stable/c/8cbc3001a3264d998d6b6db3e23f935c158abd4d
- https://git.kernel.org/stable/c/d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14
- https://git.kernel.org/stable/c/e76c78c48902dae6fa612749f59162bca0a79e0b
- https://git.kernel.org/stable/c/e7e1d15d2bd8c373cf621614ddd17971a2132713
Provider assertions
2Linux · cna
btrfs: do not clean up repair bio if submit fails
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 71c9a26816329f8d0a01d4d29764f6788d851c689cbeca41067691ae1561f83e
- Ingested
- 23 Sep 2026, 08:04:03 UTC
- Source record
- Official CVE record