{"id":"CVE-2025-68316","aliases":["CVE-2025-68316"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: ufs: core: Fix invalid probe error return value","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ufs: core: Fix invalid probe error return value\n\nAfter DME Link Startup, the error return value is set to the MIPI UniPro\nGenericErrorCode which can be 0 (SUCCESS) or 1 (FAILURE).  Upon failure\nduring driver probe, the error code 1 is propagated back to the driver\nprobe function which must return a negative value to indicate an error,\nbut 1 is not negative, so the probe is considered to be successful even\nthough it failed.  Subsequently, removing the driver results in an oops\nbecause it is not in a valid state.\n\nThis happens because none of the callers of ufshcd_init() expect a\nnon-negative error code.\n\nFix the return value and documentation to match actual usage.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ufs: core: Fix invalid probe error return value\n\nAfter DME Link Startup, the error return value is set to the MIPI UniPro\nGenericErrorCode which can be 0 (SUCCESS) or 1 (FAILURE).  Upon failure\nduring driver probe, the error code 1 is propagated back to the driver\nprobe function which must return a negative value to indicate an error,\nbut 1 is not negative, so the probe is considered to be successful even\nthough it failed.  Subsequently, removing the driver results in an oops\nbecause it is not in a valid state.\n\nThis happens because none of the callers of ufshcd_init() expect a\nnon-negative error code.\n\nFix the return value and documentation to match actual usage.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nscsi: ufs: core: Corrección del valor de retorno de error de sondeo no válido\n\nDespués del inicio del enlace DME (DME Link Startup), el valor de retorno de error se establece en el GenericErrorCode de MIPI UniPro, que puede ser 0 (ÉXITO) o 1 (FALLO). En caso de fallo durante el sondeo del controlador, el código de error 1 se propaga de vuelta a la función de sondeo del controlador, la cual debe devolver un valor negativo para indicar un error, pero 1 no es negativo, por lo que el sondeo se considera exitoso aunque haya fallado. Posteriormente, la eliminación del controlador resulta en un oops porque no se encuentra en un estado válido.\n\nEsto ocurre porque ninguna de las funciones que llaman a ufshcd_init() espera un código de error no negativo.\n\nSe corrige el valor de retorno y la documentación para que coincidan con el uso real.","source":"nvd"}],"published":"2025-12-16T15:39:46.434Z","modified":"2026-10-14T16:10:00.250Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"69f5eb78d4b0cc978fe83dd2bfea1b67547290bf","fixed":"df96dbe1af7f6591c09f862f1226d3619b07e1b6","status":"affected"},{"type":"git","introduced":"69f5eb78d4b0cc978fe83dd2bfea1b67547290bf","fixed":"a2b32bc1d9e359a9f90d0de6af16699facb10935","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/df96dbe1af7f6591c09f862f1226d3619b07e1b6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2b32bc1d9e359a9f90d0de6af16699facb10935","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68316","url":"https://www.cve.org/CVERecord?id=CVE-2025-68316","licence":"CVE Terms of Use","modified":"2026-05-11T21:50:49.031Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68316","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68316","licence":"Public domain","modified":"2026-10-14T16:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:09.539Z","epss":{"score":0.00184,"percentile":0.08409,"date":"2026-12-01T12:00:22.000Z"}}