SecurityContext

CVE-2022-50293: Linux kernel btrfs - Denial of Service

  • Cve: CVE-2022-50293
  • Name: Linux kernel btrfs - Denial of Service
  • 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.
  • Impact: Attackers can cause transaction aborts leading to denial of service by triggering memory allocation failures.
  • Remediation: Update to the latest Linux kernel version containing the fix for proper ENOMEM error handling in btrfs_drop_extents().
  • Vulnerability type: denial_of_service
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00165
  • Epss percentile: 0.05767
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2025-09-15T15:15:40Z
  • Age in days: 435
  • Modified at: 2026-06-17T05:23:10Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-50293
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-617Reachable Assertion

References

Same in every row:

  • Source: nvd
  • Tags: Patch
Url
https://git.kernel.org/stable/c/162d053e15fe985f754ef495a96eb3db970c43ed
https://git.kernel.org/stable/c/1baf3370e2dc5e6bd1368348736189457dab2a27
https://git.kernel.org/stable/c/50f993da945074b2a069da099a0331b23a0c89a0
https://git.kernel.org/stable/c/7fbcb635c8fc927d139f3302babcf1b42c09265c

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 6.1, < 6.1.2; >= 5.16, < 6.0.16; < 5.15.86nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports