CVE-2024-44964

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-44964
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-44964.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-44964
Downstream
Related
Published
2024-09-04T18:36:01Z
Modified
2025-10-17T10:50:53.567509Z
Summary
idpf: fix memory leaks and crashes while performing a soft reset
Details

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

idpf: fix memory leaks and crashes while performing a soft reset

The second tagged commit introduced a UAF, as it removed restoring q_vector->vport pointers after reinitializating the structures. This is due to that all queue allocation functions are performed here with the new temporary vport structure and those functions rewrite the backpointers to the vport. Then, this new struct is freed and the pointers start leading to nowhere.

But generally speaking, the current logic is very fragile. It claims to be more reliable when the system is low on memory, but in fact, it consumes two times more memory as at the moment of running this function, there are two vports allocated with their queues and vectors. Moreover, it claims to prevent the driver from running into "bad state", but in fact, any error during the rebuild leaves the old vport in the partially allocated state. Finally, if the interface is down when the function is called, it always allocates a new queue set, but when the user decides to enable the interface later on, vport_open() allocates them once again, IOW there's a clear memory leak here.

Just don't allocate a new queue set when performing a reset, that solves crashes and memory leaks. Readd the old queue number and reopen the interface on rollback - that solves limbo states when the device is left disabled and/or without HW queues enabled.

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
02cbfba1add5bd9088c7d14c6b93b77a6ea8f3bb
Fixed
6b289f8d91537ec1e4f9c7b38b31b90d93b1419b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
02cbfba1add5bd9088c7d14c6b93b77a6ea8f3bb
Fixed
f01032a2ca099ec8d619aaa916c3762aa62495df

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.10.4
v6.11-rc1
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
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.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

Database specific

vanir_signatures

[
    {
        "id": "CVE-2024-44964-31655901",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "248053016531210125624162403898373166150",
            "length": 183.0
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c",
            "function": "idpf_open"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f01032a2ca099ec8d619aaa916c3762aa62495df"
    },
    {
        "id": "CVE-2024-44964-4eba2806",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "296589679817030449952730123760533682580",
            "length": 2717.0
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c",
            "function": "idpf_vport_open"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f01032a2ca099ec8d619aaa916c3762aa62495df"
    },
    {
        "id": "CVE-2024-44964-6faa2923",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "301398500515152658882920899958247900819",
            "length": 2124.0
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c",
            "function": "idpf_init_task"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f01032a2ca099ec8d619aaa916c3762aa62495df"
    },
    {
        "id": "CVE-2024-44964-703d0d5e",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "52492954460170027182642329830141575293",
                "1128476907223205970762585676584414286",
                "198565755742063655176317733628596352614",
                "200102567276193816215812668296552594138",
                "305908839634168574035762272089861779704",
                "321269691120120492113170553615350551024",
                "130978419403192526225977342045757844546",
                "23259591290809238697201110935262957940",
                "232036434350408121828552942023783928933",
                "29499948593584613761866542285937185474",
                "323446051089584490827378028958819087227",
                "14014615489555894222448818887204368216",
                "100140567024459413714756741786158611556",
                "121826158089962005842283048646625803989",
                "249227058277000314459144261657868875281",
                "37256563261565385913835112214917603892",
                "256453819491858478178745786795257798548",
                "140637929531514108820281373010129662714",
                "180991986273535935272988601521749542377",
                "252513367512628021581962021012591414688",
                "212008619743959861525426552187195732307",
                "77284497133281863556483690032459754757",
                "192511519857316472937640193380417211536",
                "285488823842873802298926502221583370710",
                "32994820329584771339570117695413946923",
                "191917627759133375233224669343851787693",
                "225055083849643277213285034297038662101",
                "194995961088926969214086507353476129707",
                "11897613889249842782362955646767367555",
                "144750275720571097520481092604798015939",
                "157332888220488306770349872492382796776",
                "232072786915178325122740186240397165586",
                "120900388258836144079534607998956738093",
                "229684018938091453339112904242236818376",
                "22961153363284504843634960681451421999",
                "261970798864211659302010873980915805097"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6b289f8d91537ec1e4f9c7b38b31b90d93b1419b"
    },
    {
        "id": "CVE-2024-44964-72c3e708",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "301398500515152658882920899958247900819",
            "length": 2124.0
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c",
            "function": "idpf_init_task"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6b289f8d91537ec1e4f9c7b38b31b90d93b1419b"
    },
    {
        "id": "CVE-2024-44964-92e1b7d5",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "52492954460170027182642329830141575293",
                "1128476907223205970762585676584414286",
                "198565755742063655176317733628596352614",
                "200102567276193816215812668296552594138",
                "305908839634168574035762272089861779704",
                "321269691120120492113170553615350551024",
                "130978419403192526225977342045757844546",
                "23259591290809238697201110935262957940",
                "232036434350408121828552942023783928933",
                "29499948593584613761866542285937185474",
                "323446051089584490827378028958819087227",
                "14014615489555894222448818887204368216",
                "100140567024459413714756741786158611556",
                "121826158089962005842283048646625803989",
                "249227058277000314459144261657868875281",
                "37256563261565385913835112214917603892",
                "256453819491858478178745786795257798548",
                "140637929531514108820281373010129662714",
                "180991986273535935272988601521749542377",
                "252513367512628021581962021012591414688",
                "212008619743959861525426552187195732307",
                "77284497133281863556483690032459754757",
                "192511519857316472937640193380417211536",
                "285488823842873802298926502221583370710",
                "32994820329584771339570117695413946923",
                "191917627759133375233224669343851787693",
                "225055083849643277213285034297038662101",
                "194995961088926969214086507353476129707",
                "11897613889249842782362955646767367555",
                "144750275720571097520481092604798015939",
                "157332888220488306770349872492382796776",
                "232072786915178325122740186240397165586",
                "120900388258836144079534607998956738093",
                "229684018938091453339112904242236818376",
                "22961153363284504843634960681451421999",
                "261970798864211659302010873980915805097"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f01032a2ca099ec8d619aaa916c3762aa62495df"
    },
    {
        "id": "CVE-2024-44964-992872df",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "296589679817030449952730123760533682580",
            "length": 2717.0
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c",
            "function": "idpf_vport_open"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6b289f8d91537ec1e4f9c7b38b31b90d93b1419b"
    },
    {
        "id": "CVE-2024-44964-9b05d567",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "66727566667714832220247241012393549170",
            "length": 2238.0
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c",
            "function": "idpf_initiate_soft_reset"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6b289f8d91537ec1e4f9c7b38b31b90d93b1419b"
    },
    {
        "id": "CVE-2024-44964-be2c21e5",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "248053016531210125624162403898373166150",
            "length": 183.0
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c",
            "function": "idpf_open"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6b289f8d91537ec1e4f9c7b38b31b90d93b1419b"
    },
    {
        "id": "CVE-2024-44964-c93dd2a0",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "179888335772505458718323234354000266567",
            "length": 1351.0
        },
        "target": {
            "file": "drivers/net/ethernet/intel/idpf/idpf_lib.c",
            "function": "idpf_initiate_soft_reset"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f01032a2ca099ec8d619aaa916c3762aa62495df"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.5