{"id":"CVE-2025-68763","summary":"crypto: starfive - Correctly handle return of sg_nents_for_len","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: starfive - Correctly handle return of sg_nents_for_len\n\nThe return value of sg_nents_for_len was assigned to an unsigned long\nin starfive_hash_digest, causing negative error codes to be converted\nto large positive integers.\n\nAdd error checking for sg_nents_for_len and return immediately on\nfailure to prevent potential buffer overflows.","modified":"2026-04-02T13:03:47.896660Z","published":"2026-01-05T09:32:35.678Z","related":["openSUSE-SU-2026:10039-1","openSUSE-SU-2026:10301-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68763.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0c3854d65cc4402cb8c52d4d773450a06efecab6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1af5c973dd744e29fa22121f43e8646b7a7a71a7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6cd14414394b4f3d6e1ed64b8241d1fcc2271820"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b3f71cf02e04cfaa482155e3078707fe7f8aef4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e9eb52037a529fbb307c290e9951a62dd728b03d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68763.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68763"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7883d1b28a2b0e62edcacea22de6b36a1918b15a"},{"fixed":"6cd14414394b4f3d6e1ed64b8241d1fcc2271820"},{"fixed":"0c3854d65cc4402cb8c52d4d773450a06efecab6"},{"fixed":"1af5c973dd744e29fa22121f43e8646b7a7a71a7"},{"fixed":"9b3f71cf02e04cfaa482155e3078707fe7f8aef4"},{"fixed":"e9eb52037a529fbb307c290e9951a62dd728b03d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68763.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.5.0"},{"fixed":"6.6.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68763.json"}}],"schema_version":"1.7.5"}