CVE-2025-21679: btrfs: add the missing error handling inside get_canonical_dev_path

Published Jan 31, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

btrfs: add the missing error handling inside getcanonicaldevpath

Inside function getcanonicaldevpath(), we call dpath() to get the final device path.

But dpath() can return error, and in that case the next strscpy() call will trigger an invalid memory access.

Add back the missing error handling for dpath().

Affected Software

9 affected components
Linux Kernel
Linux Linux kernel>=6.12.5<6.12.11
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
Linux Linux kernel=6.13-rc3
Linux Linux kernel=6.13-rc4
Linux Linux kernel=6.13-rc5
Linux Linux kernel=6.13-rc6
Linux Linux kernel=6.13-rc7

Event History

Jan 31, 2025
CVE Published
via MITRE·11:25 AM
Data Sourced
via MITRE·11:25 AM
Description
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203