5.5

CVE-2022-50293: btrfs: do not BUG_ON() on ENOMEM when dropping extent items for a range

Analyzed
AliasesUBUNTU-CVE-2022-50293DEBIAN-CVE-2022-50293
Published 15-09-2025Last modified 11-05-2026

Vulnerability summary

CVE-2022-50293 is a medium (CVSS 5.5) Reachable Assertion vulnerability in linux. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.16%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 15-09-2025
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.16%

Chance of exploitation in the next 30 days

Percentile

5%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.15% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu121 products
  • linuxAll versions (No fix recorded) | < 5.15.0-69.76
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 5.15.0-1033.37
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 39279cc3d2704cfbf9c35dcb5bdd392159ae4625, < 50f993da945074b2a069da099a0331b23a0c89a0 | ≥ 39279cc3d2704cfbf9c35dcb5bdd392159ae4625, < 7fbcb635c8fc927d139f3302babcf1b42c09265c | ≥ 39279cc3d2704cfbf9c35dcb5bdd392159ae4625, < 1baf3370e2dc5e6bd1368348736189457dab2a27 | ≥ 39279cc3d2704cfbf9c35dcb5bdd392159ae4625, < 162d053e15fe985f754ef495a96eb3db970c43ed | 2.6.29
  • linux_kernel< 5.15.86 | ≥ 5.16, < 6.0.16 | ≥ 6.1, < 6.1.2
Debian1 product
  • linux< 6.1.4-1

3 vendors · 124 products

References

8 links