CVE-2025-21679
Last modified
CVE-2025-21679 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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().. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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().
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.12.5, < 6.12.11 | — |
| Linux | Linux Kernel | 6.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-21679?
How severe is CVE-2025-21679?
How do I fix CVE-2025-21679?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-21673In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21674In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21675In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21676In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21677In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21678In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-2168The Ultimate Store Kit Elementor Addons, Woocommerce Builder…4.3
- CVE-2025-21680In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21681In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21682In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21683In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21684In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-21679?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
