{"id":"CVE-2025-21679","aliases":["CVE-2025-21679"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: add the missing error handling inside get_canonical_dev_path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: add the missing error handling inside get_canonical_dev_path\n\nInside function get_canonical_dev_path(), we call d_path() to get the\nfinal device path.\n\nBut d_path() can return error, and in that case the next strscpy() call\nwill trigger an invalid memory access.\n\nAdd back the missing error handling for d_path().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: add the missing error handling inside get_canonical_dev_path\n\nInside function get_canonical_dev_path(), we call d_path() to get the\nfinal device path.\n\nBut d_path() can return error, and in that case the next strscpy() call\nwill trigger an invalid memory access.\n\nAdd back the missing error handling for d_path().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: agregar la gestión de errores faltante dentro de get_canonical_dev_path Dentro de la función get_canonical_dev_path(), llamamos a d_path() para obtener la ruta final del dispositivo. Pero d_path() puede devolver un error y, en ese caso, la siguiente llamada a strscpy() activará un acceso a memoria no válido. Agregue nuevamente la gestión de errores faltante para d_path().","source":"nvd"}],"published":"2025-01-31T11:25:40.171Z","modified":"2026-06-17T08:44:00.267Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5d261f60b5c82ba1e4b5555252e1c90c43d96015","fixed":"d0fb5741932b831eded49bfaaf33353e96200d6d","status":"affected"},{"type":"git","introduced":"7e06de7c83a746e58d4701e013182af133395188","fixed":"fe4de594f7a2e9bc49407de60fbd20809fad4192","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.12.5","fixed":"6.12.11","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12.5","fixed":"6.12.11"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d0fb5741932b831eded49bfaaf33353e96200d6d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe4de594f7a2e9bc49407de60fbd20809fad4192","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21679","url":"https://www.cve.org/CVERecord?id=CVE-2025-21679","licence":"CVE Terms of Use","modified":"2026-05-11T21:04:21.083Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21679","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21679","licence":"Public domain","modified":"2026-06-17T08:44:00.267Z"}],"updatedAt":"2026-11-25T22:58:53.717Z","epss":{"score":0.00259,"percentile":0.10779,"date":"2026-11-30T12:00:22.000Z"}}