Skip to main content
VulnerabilityPublished Updated

CVE-2025-40205: Linux kernel · btrfs: avoid potential out-of-bounds in btrfs_encode_fh()

Source GCVE Database

0

Not known to be exploited · CVSS 7.8 High.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

AI-suggested

A patch resolving this issue is available and should be applied to affected Linux kernel versions. The fix ensures correct file handle size reporting and validates buffer length before writing, preventing out-of-bounds writes. Since this is a kernel vulnerability, updating the kernel to a patched version is the recommended remediation. Patch status is not explicitly confirmed in the provided data; therefore, check the official Linux kernel advisories or vendor updates for the current remediation guidance.

Description

A vulnerability in the Linux kernel's btrfs filesystem code was identified in the function btrfs_encode_fh(). The function improperly handles three cases for file handle sizes, leading to a potential out-of-bounds write of 8 bytes when the parent exists and root IDs differ. This memory corruption issue was resolved by correcting the size returned and validating buffer length before writing. The vulnerability is rated high severity due to its potential impact on confidentiality, integrity, and availability.

References

Community reviews

Loading reviews…