CVE-2024-39478

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-39478
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-39478.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-39478
Downstream
Published
2024-07-05T06:55:07Z
Modified
2025-10-17T07:32:56.126024Z
Summary
crypto: starfive - Do not free stack buffer
Details

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.

References

Affected packages

Git / 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
445a4aaf5842073e4130b1d6dbe3785284d9615f
Fixed
5944de192663f272033501dcd322b008fca72006
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
445a4aaf5842073e4130b1d6dbe3785284d9615f
Fixed
d7f01649f4eaf1878472d3d3f480ae1e50d98f6c

Affected versions

v6.*

v6.4
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7
v6.9.1
v6.9.2
v6.9.3
v6.9.4

Database specific

vanir_signatures

[
    {
        "signature_type": "Line",
        "id": "CVE-2024-39478-01bb759d",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7f01649f4eaf1878472d3d3f480ae1e50d98f6c",
        "signature_version": "v1",
        "target": {
            "file": "drivers/crypto/starfive/jh7110-rsa.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "293697801972388176508122540887529131843",
                "48312965539846105706929357119842583903",
                "124270937321412404096270715545081215005",
                "79693542898029596047916647461316415996"
            ]
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2024-39478-352c68fd",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5944de192663f272033501dcd322b008fca72006",
        "signature_version": "v1",
        "target": {
            "function": "starfive_rsa_enc_core",
            "file": "drivers/crypto/starfive/jh7110-rsa.c"
        },
        "digest": {
            "function_hash": "107664273971971604411132679303183944086",
            "length": 859.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2024-39478-545b8c3d",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7f01649f4eaf1878472d3d3f480ae1e50d98f6c",
        "signature_version": "v1",
        "target": {
            "function": "starfive_rsa_enc_core",
            "file": "drivers/crypto/starfive/jh7110-rsa.c"
        },
        "digest": {
            "function_hash": "107664273971971604411132679303183944086",
            "length": 859.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "id": "CVE-2024-39478-8ce90967",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5944de192663f272033501dcd322b008fca72006",
        "signature_version": "v1",
        "target": {
            "file": "drivers/crypto/starfive/jh7110-rsa.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "293697801972388176508122540887529131843",
                "48312965539846105706929357119842583903",
                "124270937321412404096270715545081215005",
                "79693542898029596047916647461316415996"
            ]
        },
        "deprecated": false
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.5.0
Fixed
6.9.5