# CVE-2025-68763: crypto: starfive - Correctly handle return of sg_nents_for_len

- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-01-05T09:32:35.678Z
- Modified: 2026-10-14T16:10:00.250Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: starfive - Correctly handle return of sg_nents_for_len

The return value of sg_nents_for_len was assigned to an unsigned long
in starfive_hash_digest, causing negative error codes to be converted
to large positive integers.

Add error checking for sg_nents_for_len and return immediately on
failure to prevent potential buffer overflows.

(As written by CVE List.)

## Affected

- Linux Linux: from 7883d1b28a2b0e62edcacea22de6b36a1918b15a before 6cd14414394b4f3d6e1ed64b8241d1fcc2271820; from 7883d1b28a2b0e62edcacea22de6b36a1918b15a before 0c3854d65cc4402cb8c52d4d773450a06efecab6; from 7883d1b28a2b0e62edcacea22de6b36a1918b15a before 1af5c973dd744e29fa22121f43e8646b7a7a71a7; from 7883d1b28a2b0e62edcacea22de6b36a1918b15a before 9b3f71cf02e04cfaa482155e3078707fe7f8aef4; from 7883d1b28a2b0e62edcacea22de6b36a1918b15a before e9eb52037a529fbb307c290e9951a62dd728b03d; 6.5 (not affected: before 6.5; from 6.6.120 up to 6.6.*; from 6.12.63 up to 6.12.*; from 6.17.13 up to 6.17.*; from 6.18.2 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/6cd14414394b4f3d6e1ed64b8241d1fcc2271820>
- <https://git.kernel.org/stable/c/0c3854d65cc4402cb8c52d4d773450a06efecab6>
- <https://git.kernel.org/stable/c/1af5c973dd744e29fa22121f43e8646b7a7a71a7>
- <https://git.kernel.org/stable/c/9b3f71cf02e04cfaa482155e3078707fe7f8aef4>
- <https://git.kernel.org/stable/c/e9eb52037a529fbb307c290e9951a62dd728b03d>

## Sources

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

---

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