# CVE-2025-68316: scsi: ufs: core: Fix invalid probe error return value

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-12-16T15:39:46.434Z
- Modified: 2026-10-14T16:10:00.250Z
- 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.

(As written by CVE List.)

## Affected

- 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 *)

## References

- <https://git.kernel.org/stable/c/df96dbe1af7f6591c09f862f1226d3619b07e1b6>
- <https://git.kernel.org/stable/c/a2b32bc1d9e359a9f90d0de6af16699facb10935>

## Sources

- CVE List: [CVE-2025-68316](https://www.cve.org/CVERecord?id=CVE-2025-68316), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-68316](https://nvd.nist.gov/vuln/detail/CVE-2025-68316), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-68316 · Whole record: https://cve.day/CVE-2025-68316.json · Rebuilt by cve.day 2026-11-25T22:59:09.539Z
