Not scored
scsi: ufs: core: Fix invalid probe error return value
- Severity
- Not scored
- Exploit likelihood
- 0.18% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix invalid probe error return value After DME Link Startup, the error return value is set to the MIPI UniPro GenericErrorCode which can be 0 (SUCCESS) or 1 (FAILURE). Upon failure during driver probe, the error code 1 is propagated back to the driver probe function which must return a negative value to indicate an error, but 1 is not negative, so the probe is considered to be successful even though it failed. Subsequently, removing the driver results in an oops because it is not in a valid state. This happens because none of the callers of ufshcd_init() expect a non-negative error code. Fix the return value and documentation to match actual usage.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 69f5eb78d4b0cc978fe83dd2bfea1b67547290bf before df96dbe1af7f6591c09f862f1226d3619b07e1b6, from 69f5eb78d4b0cc978fe83dd2bfea1b67547290bf before a2b32bc1d9e359a9f90d0de6af16699facb10935, 6.13 Not affected: before 6.13, from 6.17.8 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix invalid probe error return value After DME Link Startup, the error return value is set to the MIPI UniPro GenericErrorCode which can be 0 (SUCCESS) or 1 (FAILURE). Upon failure during driver probe, the error code 1 is propagated back to the driver probe function which must return a negative value to indicate an error, but 1 is not negative, so the probe is considered to be successful even though it failed. Subsequently, removing the driver results in an oops because it is not in a valid state. This happens because none of the callers of ufshcd_init() expect a non-negative error code. Fix the return value and documentation to match actual usage.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: ufs: core: Corrección del valor de retorno de error de sondeo no válido Despué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. Esto ocurre porque ninguna de las funciones que llaman a ufshcd_init() espera un código de error no negativo. Se corrige el valor de retorno y la documentación para que coincidan con el uso real.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68316 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68316 changed 2026-10-14 | Public domain |