# CVE-2025-68763: crypto: starfive - Correctly handle return of sg\_nents\_for\_len

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2026-01-05T09:32:35.678Z
- **Modified:** 2026-10-14T16:10:00.250Z

## Who should check

- Anyone running Linux \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 6cd14414394b4f3d6e1ed64b8241d1fcc2271820; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 0c3854d65cc4402cb8c52d4d773450a06efecab6; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 1af5c973dd744e29fa22121f43e8646b7a7a71a7; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 9b3f71cf02e04cfaa482155e3078707fe7f8aef4; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< e9eb52037a529fbb307c290e9951a62dd728b03d
- Anyone running Linux 6.5

## 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.

## Affected and fixed versions

- Linux: \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 6cd14414394b4f3d6e1ed64b8241d1fcc2271820; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 0c3854d65cc4402cb8c52d4d773450a06efecab6; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 1af5c973dd744e29fa22121f43e8646b7a7a71a7; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 9b3f71cf02e04cfaa482155e3078707fe7f8aef4; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< e9eb52037a529fbb307c290e9951a62dd728b03d (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68763. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68763.md
Affected: Linux >= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, < 6cd14414394b4f3d6e1ed64b8241d1fcc2271820; >= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, < 0c3854d65cc4402cb8c52d4d773450a06efecab6; >= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, < 1af5c973dd744e29fa22121f43e8646b7a7a71a7; >= 7883d1b28a2b0e62edcacea…
Fixed in: Linux 6cd14414394b4f3d6e1ed64b8241d1fcc2271820, Linux 0c3854d65cc4402cb8c52d4d773450a06efecab6, Linux 1af5c973dd744e29fa22121f43e8646b7a7a71a7, Linux 9b3f71cf02e04cfaa482155e3078707fe7f8aef4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68763 being exploited?

There is no confirmed exploitation: CVE-2025-68763 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68763?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68763?

Linux \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 6cd14414394b4f3d6e1ed64b8241d1fcc2271820; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 0c3854d65cc4402cb8c52d4d773450a06efecab6; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 1af5c973dd744e29fa22121f43e8646b7a7a71a7; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< 9b3f71cf02e04cfaa482155e3078707fe7f8aef4; \>= 7883d1b28a2b0e62edcacea22de6b36a1918b15a, \< e9eb52037a529fbb307c290e9951a62dd728b03d; Linux 6.5.

### Is there a fix for CVE-2025-68763?

Yes. Fixed in Linux 6cd14414394b4f3d6e1ed64b8241d1fcc2271820, Linux 0c3854d65cc4402cb8c52d4d773450a06efecab6, Linux 1af5c973dd744e29fa22121f43e8646b7a7a71a7, Linux 9b3f71cf02e04cfaa482155e3078707fe7f8aef4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-68763?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68763>

HTML: <https://flawdb.com/CVE-2025-68763> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68763>
