CVE-2022-50293
publishedbtrfs: do not BUG_ON() on ENOMEM when dropping extent items for a range
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux39279cc3d2704cfbf9c35dcb5bdd392159ae4625 to < 50f993da945074b2a069da099a0331b23a0c89a0 · 39279cc3d2704cfbf9c35dcb5bdd392159ae4625 to < 7fbcb635c8fc927d139f3302babcf1b42c09265c · 39279cc3d2704cfbf9c35dcb5bdd392159ae4625 to < 1baf3370e2dc5e6bd1368348736189457dab2a27 · 39279cc3d2704cfbf9c35dcb5bdd392159ae4625 to < 162d053e15fe985f754ef495a96eb3db970c43ed · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.29 (affected) · 0 to < 2.6.29 (unaffected · semver) · 5.15.86 through 5.15.* (unaffected · semver) · 6.0.16 through 6.0.* (unaffected · semver) · 6.1.2 through 6.1.* (unaffected · semver) · 6.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2023-012 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-012 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
Show 46 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_280-defaultppc64le | Advisory build | 1-8.5.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_280-defaults390x | Advisory build | 1-8.5.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_280-defaultx86_64 | Advisory build | 1-8.5.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-012 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-012 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2023-012 |
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: do not BUG_ON() on ENOMEM when dropping extent items for a range If we get -ENOMEM while dropping file extent items in a given range, at btrfs_drop_extents(), due to failure to allocate memory when attempting to increment the reference count for an extent or drop the reference count, we handle it with a BUG_ON(). This is excessive, instead we can simply abort the transaction and return the error to the caller. In fact most callers of btrfs_drop_extents(), directly or indirectly, already abort the transaction if btrfs_drop_extents() returns any error. Also, we already have error paths at btrfs_drop_extents() that may return -ENOMEM and in those cases we abort the transaction, like for example anything that changes the b+tree may return -ENOMEM due to a failure to allocate a new extent buffer when COWing an existing extent buffer, such as a call to btrfs_duplicate_item() for example. So replace the BUG_ON() calls with proper logic to abort the transaction and return the error.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 39279cc3d2704cfbf9c35dcb5bdd392159ae4625 to < 50f993da945074b2a069da099a0331b23a0c89a0 (affected · git)39279cc3d2704cfbf9c35dcb5bdd392159ae4625 to < 7fbcb635c8fc927d139f3302babcf1b42c09265c (affected · git)39279cc3d2704cfbf9c35dcb5bdd392159ae4625 to < 1baf3370e2dc5e6bd1368348736189457dab2a27 (affected · git)39279cc3d2704cfbf9c35dcb5bdd392159ae4625 to < 162d053e15fe985f754ef495a96eb3db970c43ed (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.29 (affected)0 to < 2.6.29 (unaffected · semver)5.15.86 through 5.15.* (unaffected · semver)6.0.16 through 6.0.* (unaffected · semver)6.1.2 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
btrfs: do not BUG_ON() on ENOMEM when dropping extent items for a range
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b33530c0a35a18dfb78b0c497885137a6e92a9890e9581560d1ba0b05b9c2c19
- Ingested
- 23 Sep 2026, 08:04:48 UTC
- Source record
- Official CVE record