Vulnerability in Linux

CVE-2025-21679

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

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.002, 7.0th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 5d261f60b5c82ba1e4b5555252e1c90c43d96015, 7e06de7c83a746e58d4701e013182af133395188, 6.12.5
  • Linux Kernel — versions 6.13

Public exploits and proof-of-concept code

Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References