Advisory Published

CVE-2025-21679

First published: Fri Jan 31 2025(Updated: )

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().

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-21679?

    The severity of CVE-2025-21679 is classified as moderate based on its impact on system functions.

  • How do I fix CVE-2025-21679?

    To fix CVE-2025-21679, ensure that you have the latest patches or updates applied to the Linux kernel.

  • Which versions of the Linux kernel are affected by CVE-2025-21679?

    CVE-2025-21679 affects multiple versions of the Linux kernel that are prior to the patch release.

  • What does CVE-2025-21679 impact in the Linux kernel?

    CVE-2025-21679 primarily impacts the btrfs file system functionality related to device path resolution.

  • Is CVE-2025-21679 exploitable in remote attacks?

    CVE-2025-21679 is not specifically noted for being exploitable in remote attacks but may allow local code execution under certain conditions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203