CVE-2024-35924

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-35924
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35924.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35924
Downstream
Related
Published
2024-05-19T10:10:35Z
Modified
2025-10-17T04:01:34.428709Z
Summary
usb: typec: ucsi: Limit read size on v1.2
Details

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

usb: typec: ucsi: Limit read size on v1.2

Between UCSI 1.2 and UCSI 2.0, the size of the MESSAGE_IN region was increased from 16 to 256. In order to avoid overflowing reads for older systems, add a mechanism to use the read UCSI version to truncate read sizes on UCSI v1.2.

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
bdc62f2bae8fb0e8e99574de5232f0a3c54a27df
Fixed
266f403ec47573046dee4bcebda82777ce702c40
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bdc62f2bae8fb0e8e99574de5232f0a3c54a27df
Fixed
0defcaa09d3b21e8387829ee3a652c43fa91e13f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bdc62f2bae8fb0e8e99574de5232f0a3c54a27df
Fixed
b3db266fb031fba88c423d4bb8983a73a3db6527

Affected versions

v5.*

v5.10
v5.10-rc1
v5.10-rc2
v5.10-rc3
v5.10-rc4
v5.10-rc5
v5.10-rc6
v5.10-rc7
v5.11
v5.11-rc1
v5.11-rc2
v5.11-rc3
v5.11-rc4
v5.11-rc5
v5.11-rc6
v5.11-rc7
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13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2-rc6
v6.2-rc7
v6.2-rc8
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
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.6.1
v6.6.10
v6.6.11
v6.6.12
v6.6.13
v6.6.14
v6.6.15
v6.6.16
v6.6.17
v6.6.18
v6.6.19
v6.6.2
v6.6.20
v6.6.21
v6.6.22
v6.6.23
v6.6.24
v6.6.25
v6.6.26
v6.6.3
v6.6.4
v6.6.5
v6.6.6
v6.6.7
v6.6.8
v6.6.9
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.8.1
v6.8.2
v6.8.3
v6.8.4
v6.8.5

Database specific

vanir_signatures

[
    {
        "digest": {
            "length": 1446.0,
            "function_hash": "63917578422204467014569546547710641772"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_read_error",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@266f403ec47573046dee4bcebda82777ce702c40",
        "id": "CVE-2024-35924-010299a2"
    },
    {
        "digest": {
            "length": 305.0,
            "function_hash": "1685519398872825479073571787976824550"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_register",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@266f403ec47573046dee4bcebda82777ce702c40",
        "id": "CVE-2024-35924-1c730d30"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "142002162663645187700726197594252970153",
                "150195240025339420043397223331792903098",
                "128245612645909244630454851347712815162",
                "310413195858792284594197710013585320353",
                "76974281868753691266148667364828297400",
                "221403519644568718428922979404805872464",
                "313962106937077336940260509057401046356",
                "303368232461389658601995891392349442172",
                "138619597335020797335852102261373019983",
                "152423260386980909361855778424299171525",
                "251375974320294457483352903647098368837",
                "336395475905764752205171646585446666839",
                "298927451947358714121216307775973853523",
                "193590651187464831311736526405540841825"
            ]
        },
        "signature_type": "Line",
        "target": {
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0defcaa09d3b21e8387829ee3a652c43fa91e13f",
        "id": "CVE-2024-35924-1cc5242e"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "142002162663645187700726197594252970153",
                "150195240025339420043397223331792903098",
                "128245612645909244630454851347712815162",
                "310413195858792284594197710013585320353",
                "76974281868753691266148667364828297400",
                "221403519644568718428922979404805872464",
                "313962106937077336940260509057401046356",
                "303368232461389658601995891392349442172",
                "138619597335020797335852102261373019983",
                "152423260386980909361855778424299171525",
                "251375974320294457483352903647098368837",
                "336395475905764752205171646585446666839",
                "298927451947358714121216307775973853523",
                "193590651187464831311736526405540841825"
            ]
        },
        "signature_type": "Line",
        "target": {
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3db266fb031fba88c423d4bb8983a73a3db6527",
        "id": "CVE-2024-35924-38e7f3dd"
    },
    {
        "digest": {
            "length": 305.0,
            "function_hash": "1685519398872825479073571787976824550"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_register",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3db266fb031fba88c423d4bb8983a73a3db6527",
        "id": "CVE-2024-35924-398fca32"
    },
    {
        "digest": {
            "length": 305.0,
            "function_hash": "1685519398872825479073571787976824550"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_register",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0defcaa09d3b21e8387829ee3a652c43fa91e13f",
        "id": "CVE-2024-35924-719de285"
    },
    {
        "digest": {
            "length": 439.0,
            "function_hash": "249793388815086234534037366377389699773"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_send_command",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@266f403ec47573046dee4bcebda82777ce702c40",
        "id": "CVE-2024-35924-b22ca70c"
    },
    {
        "digest": {
            "length": 439.0,
            "function_hash": "249793388815086234534037366377389699773"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_send_command",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3db266fb031fba88c423d4bb8983a73a3db6527",
        "id": "CVE-2024-35924-c8404bab"
    },
    {
        "digest": {
            "length": 439.0,
            "function_hash": "249793388815086234534037366377389699773"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_send_command",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0defcaa09d3b21e8387829ee3a652c43fa91e13f",
        "id": "CVE-2024-35924-d5f6b2fe"
    },
    {
        "digest": {
            "length": 1446.0,
            "function_hash": "63917578422204467014569546547710641772"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_read_error",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3db266fb031fba88c423d4bb8983a73a3db6527",
        "id": "CVE-2024-35924-e0598a0c"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "142002162663645187700726197594252970153",
                "150195240025339420043397223331792903098",
                "128245612645909244630454851347712815162",
                "310413195858792284594197710013585320353",
                "76974281868753691266148667364828297400",
                "221403519644568718428922979404805872464",
                "313962106937077336940260509057401046356",
                "303368232461389658601995891392349442172",
                "138619597335020797335852102261373019983",
                "152423260386980909361855778424299171525",
                "251375974320294457483352903647098368837",
                "336395475905764752205171646585446666839",
                "298927451947358714121216307775973853523",
                "193590651187464831311736526405540841825"
            ]
        },
        "signature_type": "Line",
        "target": {
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@266f403ec47573046dee4bcebda82777ce702c40",
        "id": "CVE-2024-35924-f0553a8d"
    },
    {
        "digest": {
            "length": 1446.0,
            "function_hash": "63917578422204467014569546547710641772"
        },
        "signature_type": "Function",
        "target": {
            "function": "ucsi_read_error",
            "file": "drivers/usb/typec/ucsi/ucsi.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0defcaa09d3b21e8387829ee3a652c43fa91e13f",
        "id": "CVE-2024-35924-f5ed23d6"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
6.6.27
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.6