---
id: CVE-2024-39478
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  crypto: starfive - Do not free stack buffer

  RSA text data uses variable length buffer allocated in software stack.
  Calling kfree on it causes undefined behaviour in su…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  crypto: starfive - Do not free stack buffer

  RSA text data uses variable length buffer allocated in software stack.
  Calling kfree on it causes undefined behaviour in su…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-770
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 6.9, < 6.9.5'
patched:
  - linux_kernel 6.9.5
published: '2024-07-05'
updated: '2026-09-02'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-39478'
references:
  - url: 'https://git.kernel.org/stable/c/5944de192663f272033501dcd322b008fca72006'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/bfd861dadd3a45de257b3d328bf49b64a6f9c5f1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d7f01649f4eaf1878472d3d3f480ae1e50d98f6c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5944de192663f272033501dcd322b008fca72006'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/d7f01649f4eaf1878472d3d3f480ae1e50d98f6c'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00222
epssPercentile: 0.11331
ingestedAt: '2026-09-02T13:44:40.457Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

crypto: starfive - Do not free stack buffer

RSA text data uses variable length buffer allocated in software stack.
Calling kfree on it causes undefined behaviour in subsequent operations.

## Affected

- `linux_kernel >= 6.9, < 6.9.5`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.9.5`
