Bug 2343168 (CVE-2025-21679) - CVE-2025-21679 kernel: btrfs: add the missing error handling inside get_canonical_dev_path
Summary: CVE-2025-21679 kernel: btrfs: add the missing error handling inside get_canon...
Keywords:
Status: NEW
Alias: CVE-2025-21679
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-31 12:01 UTC by OSIDB Bzimport
Modified: 2025-01-31 18:44 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-01-31 12:01:30 UTC
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().


Note You need to log in before you can comment on or make changes to this bug.