CVE-2024-26655

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-26655
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26655.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26655
Downstream
Published
2024-04-01T14:58:20Z
Modified
2025-10-21T18:37:36.108413Z
Summary
Fix memory leak in posix_clock_open()
Details

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

Fix memory leak in posixclockopen()

If the clk ops.open() function returns an error, we don't release the pccontext we allocated for this clock.

Re-organize the code slightly to make it all more obvious.

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
60c6946675fc06dd2fd2b7a4b6fd1c1f046f1056
Fixed
a88649b49523e8cbe95254440d803e38c19d2341
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
60c6946675fc06dd2fd2b7a4b6fd1c1f046f1056
Fixed
0200dd7ed2335469955d7e69cc1a6fa7df1f3847
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
60c6946675fc06dd2fd2b7a4b6fd1c1f046f1056
Fixed
5b4cdd9c5676559b8a7c944ac5269b914b8c0bb8

Affected versions

v6.*

v6.6
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.7.1
v6.7.10
v6.7.11
v6.7.2
v6.7.3
v6.7.4
v6.7.5
v6.7.6
v6.7.7
v6.7.8
v6.7.9
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.9-rc1

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0200dd7ed2335469955d7e69cc1a6fa7df1f3847",
        "signature_version": "v1",
        "id": "CVE-2024-26655-74248929",
        "signature_type": "Function",
        "digest": {
            "function_hash": "129145525711850212118572072955504482614",
            "length": 587.0
        },
        "deprecated": false,
        "target": {
            "file": "kernel/time/posix-clock.c",
            "function": "posix_clock_open"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0200dd7ed2335469955d7e69cc1a6fa7df1f3847",
        "signature_version": "v1",
        "id": "CVE-2024-26655-78858c40",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "156467797403833756003142573356576731038",
                "80026844217998910281500840065294602785",
                "146414425547638315877727295892867747900",
                "40990662304463757202003850616363693441",
                "212398934211709296577023834964737605340",
                "58755177250203518593223134213114537859",
                "76010833192986839349381560618268008797",
                "202502933128781791148670454003451428658",
                "16778912806549656644157390959375362601",
                "107250404483695313294477496739885094007",
                "281707811071809079695021721187436022784"
            ]
        },
        "deprecated": false,
        "target": {
            "file": "kernel/time/posix-clock.c"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b4cdd9c5676559b8a7c944ac5269b914b8c0bb8",
        "signature_version": "v1",
        "id": "CVE-2024-26655-8d8d8d10",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "156467797403833756003142573356576731038",
                "80026844217998910281500840065294602785",
                "146414425547638315877727295892867747900",
                "40990662304463757202003850616363693441",
                "212398934211709296577023834964737605340",
                "58755177250203518593223134213114537859",
                "76010833192986839349381560618268008797",
                "202502933128781791148670454003451428658",
                "16778912806549656644157390959375362601",
                "107250404483695313294477496739885094007",
                "281707811071809079695021721187436022784"
            ]
        },
        "deprecated": false,
        "target": {
            "file": "kernel/time/posix-clock.c"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b4cdd9c5676559b8a7c944ac5269b914b8c0bb8",
        "signature_version": "v1",
        "id": "CVE-2024-26655-94ff2b0f",
        "signature_type": "Function",
        "digest": {
            "function_hash": "129145525711850212118572072955504482614",
            "length": 587.0
        },
        "deprecated": false,
        "target": {
            "file": "kernel/time/posix-clock.c",
            "function": "posix_clock_open"
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.12
Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.8.3