CVE-2025-21679

btrfs: add the missing error handling inside get_canonical_dev_path

published January 31, 2025

CVSS
—
EPSS
0%
Percentile
6.4
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00173 · 6.4th percentile
Published
2025-01-31T11:25Z
EPSS history
Timeline
  • 31 JAN 11:25Z
    btrfs: add the missing error handling inside get_canonical_dev_path
    cvelistv5