CVE-2024-42275

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-42275
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42275.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-42275
Downstream
Published
2024-08-17T08:54:28Z
Modified
2025-10-15T13:15:51.511029Z
Summary
drm/client: Fix error code in drm_client_buffer_vmap_local()
Details

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

drm/client: Fix error code in drmclientbuffervmaplocal()

This function accidentally returns zero/success on the failure path. It leads to locking issues and an uninitialized *map_copy in the caller.

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
b4b0193e83cb987143583e2b4011b35331f429bd
Fixed
c0f412961653237f52e2f16ee8747fb330bcf074
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4b0193e83cb987143583e2b4011b35331f429bd
Fixed
b5fbf924f125ba3638cfdc21c0515eb7e76264ca

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.10.1
v6.10.2
v6.10.3
v6.8
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

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/drm_client.c",
                "function": "drm_client_buffer_vmap_local"
            },
            "id": "CVE-2024-42275-a36f69db",
            "digest": {
                "length": 305.0,
                "function_hash": "238754326675845099741260348135588973841"
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5fbf924f125ba3638cfdc21c0515eb7e76264ca"
        },
        {
            "signature_version": "v1",
            "signature_type": "Line",
            "target": {
                "file": "drivers/gpu/drm/drm_client.c"
            },
            "id": "CVE-2024-42275-a97c71f9",
            "digest": {
                "line_hashes": [
                    "32660666133524146402195331417640181024",
                    "332430651526368898158573870984981413053",
                    "278402814639065442141780731960805157313",
                    "163665164582766320509753428974722866338"
                ],
                "threshold": 0.9
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5fbf924f125ba3638cfdc21c0515eb7e76264ca"
        },
        {
            "signature_version": "v1",
            "signature_type": "Line",
            "target": {
                "file": "drivers/gpu/drm/drm_client.c"
            },
            "id": "CVE-2024-42275-a9bb226f",
            "digest": {
                "line_hashes": [
                    "32660666133524146402195331417640181024",
                    "332430651526368898158573870984981413053",
                    "278402814639065442141780731960805157313",
                    "163665164582766320509753428974722866338"
                ],
                "threshold": 0.9
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0f412961653237f52e2f16ee8747fb330bcf074"
        },
        {
            "signature_version": "v1",
            "signature_type": "Function",
            "target": {
                "file": "drivers/gpu/drm/drm_client.c",
                "function": "drm_client_buffer_vmap_local"
            },
            "id": "CVE-2024-42275-fff70c2d",
            "digest": {
                "length": 305.0,
                "function_hash": "238754326675845099741260348135588973841"
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0f412961653237f52e2f16ee8747fb330bcf074"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.10.4