{"id":"CVE-2025-68763","aliases":["CVE-2025-68763"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: starfive - Correctly handle return of sg_nents_for_len","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncrypto: starfive - Manejar correctamente el retorno de sg_nents_for_len\n\nEl valor de retorno de sg_nents_for_len fue asignado a un unsigned long en starfive_hash_digest, causando que los códigos de error negativos se convirtieran en grandes enteros positivos.\n\nAñadir comprobación de errores para sg_nents_for_len y retornar inmediatamente en caso de fallo para prevenir posibles desbordamientos de búfer.","source":"nvd"}],"published":"2026-01-05T09:32:35.678Z","modified":"2026-10-14T16:10:00.250Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7883d1b28a2b0e62edcacea22de6b36a1918b15a","fixed":"6cd14414394b4f3d6e1ed64b8241d1fcc2271820","status":"affected"},{"type":"git","introduced":"7883d1b28a2b0e62edcacea22de6b36a1918b15a","fixed":"0c3854d65cc4402cb8c52d4d773450a06efecab6","status":"affected"},{"type":"git","introduced":"7883d1b28a2b0e62edcacea22de6b36a1918b15a","fixed":"1af5c973dd744e29fa22121f43e8646b7a7a71a7","status":"affected"},{"type":"git","introduced":"7883d1b28a2b0e62edcacea22de6b36a1918b15a","fixed":"9b3f71cf02e04cfaa482155e3078707fe7f8aef4","status":"affected"},{"type":"git","introduced":"7883d1b28a2b0e62edcacea22de6b36a1918b15a","fixed":"e9eb52037a529fbb307c290e9951a62dd728b03d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.63","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.13","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6cd14414394b4f3d6e1ed64b8241d1fcc2271820","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c3854d65cc4402cb8c52d4d773450a06efecab6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1af5c973dd744e29fa22121f43e8646b7a7a71a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b3f71cf02e04cfaa482155e3078707fe7f8aef4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9eb52037a529fbb307c290e9951a62dd728b03d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68763","url":"https://www.cve.org/CVERecord?id=CVE-2025-68763","licence":"CVE Terms of Use","modified":"2026-05-11T21:52:52.779Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68763","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68763","licence":"Public domain","modified":"2026-10-14T16:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:10.268Z","epss":{"score":0.00206,"percentile":0.11223,"date":"2026-12-01T12:00:22.000Z"}}