---
id: CVE-2025-68763
title: |-
  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 n…
summary: |-
  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 n…
severity: none
published: '2026-01-05'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T16:10:00.250'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68763'
references:
  - url: 'https://git.kernel.org/stable/c/0c3854d65cc4402cb8c52d4d773450a06efecab6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1af5c973dd744e29fa22121f43e8646b7a7a71a7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6cd14414394b4f3d6e1ed64b8241d1fcc2271820'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9b3f71cf02e04cfaa482155e3078707fe7f8aef4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e9eb52037a529fbb307c290e9951a62dd728b03d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00208
epssPercentile: 0.10089
ingestedAt: '2026-10-14T16:40:32.061Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
