CVE-2024-39478 (GCVE-0-2024-39478)

Vulnerability from cvelistv5 – Published: 2024-07-05 06:55 – Updated: 2026-09-02 12:49
VLAI
Title
crypto: starfive - Do not free stack buffer
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 subsequent operations.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-07-08 14:13 UTC
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: 445a4aaf5842073e4130b1d6dbe3785284d9615f , < bfd861dadd3a45de257b3d328bf49b64a6f9c5f1 (git)
Affected: 445a4aaf5842073e4130b1d6dbe3785284d9615f , < 5944de192663f272033501dcd322b008fca72006 (git)
Affected: 445a4aaf5842073e4130b1d6dbe3785284d9615f , < d7f01649f4eaf1878472d3d3f480ae1e50d98f6c (git)
Create a notification for this product.
Linux Linux Affected: 6.5
Unaffected: 0 , < 6.5 (semver)
Unaffected: 6.6.156 , ≤ 6.6.* (semver)
Unaffected: 6.9.5 , ≤ 6.9.* (semver)
Unaffected: 6.10 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-39478",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-07-08T14:13:27.969943Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-07-08T14:13:38.169Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T04:26:16.166Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/5944de192663f272033501dcd322b008fca72006"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/d7f01649f4eaf1878472d3d3f480ae1e50d98f6c"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/crypto/starfive/jh7110-rsa.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bfd861dadd3a45de257b3d328bf49b64a6f9c5f1",
              "status": "affected",
              "version": "445a4aaf5842073e4130b1d6dbe3785284d9615f",
              "versionType": "git"
            },
            {
              "lessThan": "5944de192663f272033501dcd322b008fca72006",
              "status": "affected",
              "version": "445a4aaf5842073e4130b1d6dbe3785284d9615f",
              "versionType": "git"
            },
            {
              "lessThan": "d7f01649f4eaf1878472d3d3f480ae1e50d98f6c",
              "status": "affected",
              "version": "445a4aaf5842073e4130b1d6dbe3785284d9615f",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/crypto/starfive/jh7110-rsa.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.5"
            },
            {
              "lessThan": "6.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.156",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.9.*",
              "status": "unaffected",
              "version": "6.9.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.10",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.156",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9.5",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: starfive - Do not free stack buffer\n\nRSA text data uses variable length buffer allocated in software stack.\nCalling kfree on it causes undefined behaviour in subsequent operations."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable code is reached through the keyctl() syscall (KEYCTL_PKEY_ENCRYPT/DECRYPT/SIGN/VERIFY) on a locally added asymmetric key, requiring local access to the affected StarFive JH7110 system. No network-facing kernel path drives akcipher RSA operations.\nAC:L - The invalid kfree() executes unconditionally on every RSA operation, on both the success and error paths, so the attacker triggers it deterministically with a single syscall and can repeat it arbitrarily to groom the slab. The attacker also controls the contents of the wrongly-freed memory, since the RSA plaintext is copied into rsa_data.\nPR:L - Any unprivileged user can add an X.509/asymmetric key to their own session keyring and invoke KEYCTL_PKEY_* on it; the only check is KEY_NEED_SEARCH on a key they own, with no capability requirement.\nUI:N - Exploitation is entirely attacker-driven via syscalls in the attacker\u0027s own process; no victim action or interaction is needed.\nS:U - The corruption is confined to the kernel\u0027s own slab allocator within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - Freeing an interior pointer places a misaligned address on the SLUB freelist, so a subsequent allocation overlaps the still-live request buffer, yielding attacker-readable aliasing of kernel heap memory that can be leveraged for arbitrary kernel memory disclosure.\nI:H - The invalid free writes a freepointer into the middle of a live object and creates overlapping/double-freed allocations whose contents the attacker controls, a classic heap-corruption primitive leading to arbitrary write and privilege escalation.\nA:H - Freelist corruption from freeing a non-slab-aligned pointer reliably causes kernel oops/panic, and the operation can be repeated at will to guarantee a crash."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-09-02T12:49:12.242Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bfd861dadd3a45de257b3d328bf49b64a6f9c5f1"
        },
        {
          "url": "https://git.kernel.org/stable/c/5944de192663f272033501dcd322b008fca72006"
        },
        {
          "url": "https://git.kernel.org/stable/c/d7f01649f4eaf1878472d3d3f480ae1e50d98f6c"
        }
      ],
      "title": "crypto: starfive - Do not free stack buffer",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-39478",
    "datePublished": "2024-07-05T06:55:07.936Z",
    "dateReserved": "2024-06-25T14:23:23.746Z",
    "dateUpdated": "2026-09-02T12:49:12.242Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-39478",
      "date": "2026-11-19",
      "epss": "0.00222",
      "percentile": "0.12914"
    },
    "microsoft_vex": {
      "current_release_date": "2026-10-02T02:52:39.000Z",
      "cve": "CVE-2024-39478",
      "id": "msrc_CVE-2024-39478",
      "initial_release_date": "2025-09-03T23:18:48.000Z",
      "product_status:fixed": "1",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "19",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "crypto: starfive - Do not free stack buffer",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2024-39478.json",
      "version": "20"
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-11-06T14:18:47+00:00",
      "cve": "CVE-2024-39478",
      "id": "CVE-2024-39478",
      "initial_release_date": "2024-07-05T00:00:00+00:00",
      "product_status:known_not_affected": "199",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: crypto: starfive - Do not free stack buffer",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-39478.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-02T04:26:16.166Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/5944de192663f272033501dcd322b008fca72006"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/d7f01649f4eaf1878472d3d3f480ae1e50d98f6c"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-39478",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-07-08T14:13:27.969943Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-07-08T14:13:35.173Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Linux",
              "programFiles": [
                "drivers/crypto/starfive/jh7110-rsa.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "lessThan": "bfd861dadd3a45de257b3d328bf49b64a6f9c5f1",
                  "status": "affected",
                  "version": "445a4aaf5842073e4130b1d6dbe3785284d9615f",
                  "versionType": "git"
                },
                {
                  "lessThan": "5944de192663f272033501dcd322b008fca72006",
                  "status": "affected",
                  "version": "445a4aaf5842073e4130b1d6dbe3785284d9615f",
                  "versionType": "git"
                },
                {
                  "lessThan": "d7f01649f4eaf1878472d3d3f480ae1e50d98f6c",
                  "status": "affected",
                  "version": "445a4aaf5842073e4130b1d6dbe3785284d9615f",
                  "versionType": "git"
                }
              ]
            },
            {
              "defaultStatus": "affected",
              "product": "Linux",
              "programFiles": [
                "drivers/crypto/starfive/jh7110-rsa.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "status": "affected",
                  "version": "6.5"
                },
                {
                  "lessThan": "6.5",
                  "status": "unaffected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.6.*",
                  "status": "unaffected",
                  "version": "6.6.156",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.9.*",
                  "status": "unaffected",
                  "version": "6.9.5",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "*",
                  "status": "unaffected",
                  "version": "6.10",
                  "versionType": "original_commit_for_fix"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.6.156",
                      "versionStartIncluding": "6.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.9.5",
                      "versionStartIncluding": "6.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.10",
                      "versionStartIncluding": "6.5",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: starfive - Do not free stack buffer\n\nRSA text data uses variable length buffer allocated in software stack.\nCalling kfree on it causes undefined behaviour in subsequent operations."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "scenarios": [
                {
                  "lang": "en",
                  "value": "AV:L - The vulnerable code is reached through the keyctl() syscall (KEYCTL_PKEY_ENCRYPT/DECRYPT/SIGN/VERIFY) on a locally added asymmetric key, requiring local access to the affected StarFive JH7110 system. No network-facing kernel path drives akcipher RSA operations.\nAC:L - The invalid kfree() executes unconditionally on every RSA operation, on both the success and error paths, so the attacker triggers it deterministically with a single syscall and can repeat it arbitrarily to groom the slab. The attacker also controls the contents of the wrongly-freed memory, since the RSA plaintext is copied into rsa_data.\nPR:L - Any unprivileged user can add an X.509/asymmetric key to their own session keyring and invoke KEYCTL_PKEY_* on it; the only check is KEY_NEED_SEARCH on a key they own, with no capability requirement.\nUI:N - Exploitation is entirely attacker-driven via syscalls in the attacker\u0027s own process; no victim action or interaction is needed.\nS:U - The corruption is confined to the kernel\u0027s own slab allocator within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - Freeing an interior pointer places a misaligned address on the SLUB freelist, so a subsequent allocation overlaps the still-live request buffer, yielding attacker-readable aliasing of kernel heap memory that can be leveraged for arbitrary kernel memory disclosure.\nI:H - The invalid free writes a freepointer into the middle of a live object and creates overlapping/double-freed allocations whose contents the attacker controls, a classic heap-corruption primitive leading to arbitrary write and privilege escalation.\nA:H - Freelist corruption from freeing a non-slab-aligned pointer reliably causes kernel oops/panic, and the operation can be repeated at will to guarantee a crash."
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-09-02T12:49:12.242Z",
            "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "shortName": "Linux"
          },
          "references": [
            {
              "url": "https://git.kernel.org/stable/c/bfd861dadd3a45de257b3d328bf49b64a6f9c5f1"
            },
            {
              "url": "https://git.kernel.org/stable/c/5944de192663f272033501dcd322b008fca72006"
            },
            {
              "url": "https://git.kernel.org/stable/c/d7f01649f4eaf1878472d3d3f480ae1e50d98f6c"
            }
          ],
          "title": "crypto: starfive - Do not free stack buffer",
          "x_generator": {
            "engine": "bippy-1.2.0"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "assignerShortName": "Linux",
        "cveId": "CVE-2024-39478",
        "datePublished": "2024-07-05T06:55:07.936Z",
        "dateReserved": "2024-06-25T14:23:23.746Z",
        "dateUpdated": "2026-09-02T12:49:12.242Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.