CVE-2025-68763

crypto: starfive - Correctly handle return of sg_nents_for_len

State
Published
Severity
Not scored
Published
Jan 5, 2026
Updated
May 11, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7883d1b28a2b0e62edcacea22de6b36a1918b15a to before 6cd14414394b4f3d6e1ed64b8241d1fcc2271820Affected
  • 7883d1b28a2b0e62edcacea22de6b36a1918b15a to before 0c3854d65cc4402cb8c52d4d773450a06efecab6Affected
  • 7883d1b28a2b0e62edcacea22de6b36a1918b15a to before 1af5c973dd744e29fa22121f43e8646b7a7a71a7Affected
  • 7883d1b28a2b0e62edcacea22de6b36a1918b15a to before 9b3f71cf02e04cfaa482155e3078707fe7f8aef4Affected
  • 7883d1b28a2b0e62edcacea22de6b36a1918b15a to before e9eb52037a529fbb307c290e9951a62dd728b03dAffected
LinuxLinux
  • 6.5Affected
  • before 6.5Not affected
  • 6.6.120 through 6.6.*Not affected
  • 6.12.63 through 6.12.*Not affected
  • 6.17.13 through 6.17.*Not affected
  • 6.18.2 through 6.18.*Not affected
  • 6.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.