CVE-2024-40985

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-40985
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-40985.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-40985
Downstream
Published
2024-07-12T12:37:31Z
Modified
2025-10-17T07:57:42.593793Z
Summary
net/tcp_ao: Don't leak ao_info on error-path
Details

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

net/tcpao: Don't leak aoinfo on error-path

It seems I introduced it together with TCPAOCMDFAOREQUIRED, on version 5 [1] of TCP-AO patches. Quite frustrative that having all these selftests that I've written, running kmemtest & kcov was always in todo.

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
0aadc73995d08f6b0dc061c14a564ffa46f5914e
Fixed
ebaa7d3c26332330a48f9a15f8e518d526cc0f21
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0aadc73995d08f6b0dc061c14a564ffa46f5914e
Fixed
f9ae848904289ddb16c7c9e4553ed4c64300de49

Affected versions

v6.*

v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.6
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
v6.9.5
v6.9.6

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "digest": {
            "length": 1827.0,
            "function_hash": "17326307276307647020650159480252568671"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9ae848904289ddb16c7c9e4553ed4c64300de49",
        "deprecated": false,
        "id": "CVE-2024-40985-3b691e40",
        "signature_version": "v1",
        "target": {
            "function": "tcp_ao_info_cmd",
            "file": "net/ipv4/tcp_ao.c"
        }
    },
    {
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "326122390044944267053078275513831530552",
                "23176509151816362148194100318323662995",
                "20693375200140002911186224367022494726",
                "70661759670838205266232958491603220395",
                "330302003278583305857069493548668864637"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ebaa7d3c26332330a48f9a15f8e518d526cc0f21",
        "deprecated": false,
        "id": "CVE-2024-40985-53161720",
        "signature_version": "v1",
        "target": {
            "file": "net/ipv4/tcp_ao.c"
        }
    },
    {
        "signature_type": "Function",
        "digest": {
            "length": 1827.0,
            "function_hash": "17326307276307647020650159480252568671"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ebaa7d3c26332330a48f9a15f8e518d526cc0f21",
        "deprecated": false,
        "id": "CVE-2024-40985-68fc5373",
        "signature_version": "v1",
        "target": {
            "function": "tcp_ao_info_cmd",
            "file": "net/ipv4/tcp_ao.c"
        }
    },
    {
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "326122390044944267053078275513831530552",
                "23176509151816362148194100318323662995",
                "20693375200140002911186224367022494726",
                "70661759670838205266232958491603220395",
                "330302003278583305857069493548668864637"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f9ae848904289ddb16c7c9e4553ed4c64300de49",
        "deprecated": false,
        "id": "CVE-2024-40985-a2af5d44",
        "signature_version": "v1",
        "target": {
            "file": "net/ipv4/tcp_ao.c"
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.9.7