CVE-2025-21679: Linux kernel · btrfs: add the missing error handling inside get_canonical_dev_path
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 24 Nov 2026, 19:55 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 31 Jan 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinux-raspi-realtimepkg:deb/ubuntu/linux-raspi-realtime?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-allwinner-5.19pkg:deb/ubuntu/linux-allwinner-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-5.19pkg:deb/ubuntu/linux-aws-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.2pkg:deb/ubuntu/linux-aws-6.2?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.5pkg:deb/ubuntu/linux-aws-6.5?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-azure-5.19pkg:deb/ubuntu/linux-azure-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix for this vulnerability has been implemented by adding the missing error handling inside get_canonical_dev_path(). Users should update to patched kernel versions corresponding to the affected versions listed. Since this is a kernel-level issue, applying official kernel updates from the vendor or distribution is the recommended remediation. No additional mitigations are indicated.
Description
A vulnerability in the Linux kernel's btrfs filesystem code was fixed by adding missing error handling in the get_canonical_dev_path function. The function called d_path() to get a device path, but did not handle errors returned by d_path(), leading to a potential invalid memory access in a subsequent strscpy() call. This flaw could cause a denial of service due to kernel crash or instability.
References
- ubuntu.com/security/CVE-2025-21679 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-21679 (opens in a new tab)
- git.kernel.org/linus/fe4de594f7a2e9bc49407de60fbd20809fad4192 (opens in a new tab)
- git.kernel.org/stable/c/d0fb5741932b831eded49bfaaf33353e96200d6d (opens in a new tab)
- git.kernel.org/stable/c/fe4de594f7a2e9bc49407de60fbd20809fad4192 (opens in a new tab)