CVE-2025-21752: 
Chainguard vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's btrfs filesystem has been identified and assigned CVE-2025-21752. The issue involves the improper use of btrfs_set_item_key_safe() function when modifying keys in the RAID stripe-tree, which can lead to corruption of the tree. This vulnerability was discovered and patched in February 2025 (Kernel Git).

Technical details

The vulnerability occurs in the btrfs filesystem's RAID stripe-tree handling code. When btrfs_set_item_key_safe() is used to modify keys in the RAID stripe-tree, it can trigger a kernel BUG at fs/btrfs/ctree.c:2602, resulting in an invalid opcode error. The issue manifests when attempting to modify the keys and per-device physical addresses in the RAID stripe-tree, causing tree order corruption that is detected by the checks in btrfs_set_item_key_safe() (Kernel Git).

Impact

When triggered, this vulnerability causes a kernel panic due to tree corruption, which can lead to system crashes and potential filesystem inconsistencies. The issue affects systems using the btrfs filesystem with RAID configurations (NVD).

Exploitability

The vulnerability can be triggered during normal filesystem operations, particularly during RAID stripe-tree modifications. It has been observed to occur during filesystem stress testing with the fsstress utility, suggesting that it can be triggered through regular filesystem operations (Kernel Git).

Mitigation and workarounds

The issue has been fixed by replacing the use of btrfs_set_item_key_safe() with a safer approach using btrfs_duplicate_item() to copy the item and then adjusting both the key and the per-device physical addresses. Users should update to the patched version of the Linux kernel that includes this fix (Kernel Git).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

sid

linux: 6.16.3-1

Fixed

trixie

linux

Affected

Ubuntu

Affected

bionic

linux

Not Affected

bionic (esm-infra)

linux

Not Affected

bionic (fips-updates)

linux-fips

Not Affected

bionic (fips)

linux-fips

Not Affected

devel

linux

Not Affected

focal

linux

Not Affected

focal (esm-infra)

linux

Not Affected

focal (fips-updates)

linux-fips

Not Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Chainguard vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-136535HIGH7.2
  • Chainguard logoChainguard
  • cpe:2.3:a:litellm:litellm
NoYesNov 24, 2026
CVE-2026-136538MEDIUM6.5
  • Chainguard logoChainguard
  • cpe:2.3:a:litellm:litellm
NoYesNov 24, 2026
CVE-2026-136537MEDIUM6.5
  • Chainguard logoChainguard
  • litellm
NoYesNov 24, 2026
CVE-2026-136536MEDIUM6.4
  • Chainguard logoChainguard
  • cpe:2.3:a:litellm:litellm
NoYesNov 24, 2026
CVE-2026-136540MEDIUM5.3
  • Chainguard logoChainguard
  • litellm
NoYesNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management