CVE-2024-42069

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-42069
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42069.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42069
Downstream
Related
Published
2024-07-29T15:52:33Z
Modified
2025-11-04T04:34:31.007923Z
Summary
net: mana: Fix possible double free in error handling path
Details

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

net: mana: Fix possible double free in error handling path

When auxiliarydeviceadd() returns error and then calls auxiliarydeviceuninit(), callback function adev_release calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL.

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
a69839d4327d053b18d8e1b0e7ddeee78db78f4f
Fixed
3243e64eb4d897c3eeb48b2a7221ab5a95e1282a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a69839d4327d053b18d8e1b0e7ddeee78db78f4f
Fixed
ed45c0a0b662079d4c0e518014cc148c753979b4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a69839d4327d053b18d8e1b0e7ddeee78db78f4f
Fixed
1864b8224195d0e43ddb92a8151f54f6562090cc

Affected versions

v6.*

v6.1
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.2
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.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.27
v6.6.28
v6.6.29
v6.6.3
v6.6.30
v6.6.31
v6.6.32
v6.6.33
v6.6.34
v6.6.35
v6.6.36
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.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
v6.9.7

Database specific

vanir_signatures

[
    {
        "digest": {
            "length": 639.0,
            "function_hash": "285324543507043277778209920972684133643"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed45c0a0b662079d4c0e518014cc148c753979b4",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "drivers/net/ethernet/microsoft/mana/mana_en.c",
            "function": "add_adev"
        },
        "id": "CVE-2024-42069-10a02083",
        "signature_type": "Function"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "286016330338088342604816490239430180339",
                "190988545947441089287197149731182215295",
                "302795739468969324828413200364639219767"
            ]
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1864b8224195d0e43ddb92a8151f54f6562090cc",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "drivers/net/ethernet/microsoft/mana/mana_en.c"
        },
        "id": "CVE-2024-42069-618f8a6b",
        "signature_type": "Line"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "286016330338088342604816490239430180339",
                "190988545947441089287197149731182215295",
                "302795739468969324828413200364639219767"
            ]
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3243e64eb4d897c3eeb48b2a7221ab5a95e1282a",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "drivers/net/ethernet/microsoft/mana/mana_en.c"
        },
        "id": "CVE-2024-42069-778c8eaa",
        "signature_type": "Line"
    },
    {
        "digest": {
            "length": 639.0,
            "function_hash": "285324543507043277778209920972684133643"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3243e64eb4d897c3eeb48b2a7221ab5a95e1282a",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "drivers/net/ethernet/microsoft/mana/mana_en.c",
            "function": "add_adev"
        },
        "id": "CVE-2024-42069-aa53555e",
        "signature_type": "Function"
    },
    {
        "digest": {
            "length": 639.0,
            "function_hash": "285324543507043277778209920972684133643"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1864b8224195d0e43ddb92a8151f54f6562090cc",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "drivers/net/ethernet/microsoft/mana/mana_en.c",
            "function": "add_adev"
        },
        "id": "CVE-2024-42069-aed9ccc2",
        "signature_type": "Function"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "286016330338088342604816490239430180339",
                "190988545947441089287197149731182215295",
                "302795739468969324828413200364639219767"
            ]
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed45c0a0b662079d4c0e518014cc148c753979b4",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "drivers/net/ethernet/microsoft/mana/mana_en.c"
        },
        "id": "CVE-2024-42069-f6951460",
        "signature_type": "Line"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.37
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.9.8