CVE-2024-40993

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-40993
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40993.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-40993
Downstream
Published
2024-07-12T12:37:36Z
Modified
2025-10-15T13:13:05.991632Z
Summary
netfilter: ipset: Fix suspicious rcu_dereference_protected()
Details

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

netfilter: ipset: Fix suspicious rcudereferenceprotected()

When destroying all sets, we are either in pernet exit phase or are executing a "destroy all sets command" from userspace. The latter was taken into account in ipsetdereference() (nfnetlink mutex is held), but the former was not. The patch adds the required check to rcudereferenceprotected() in ipsetdereference().

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
c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3
Fixed
3799d02ae4208af08e81310770d8754863a246a1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
93b53c202b51a69e42ca57f5a183f7e008e19f83
Fixed
72d9611968867cc4c5509e7708b1507d692b797a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0f1bb77c6d837c9513943bc7c08f04c5cc5c6568
Fixed
523bed6489e089dd8040e72453fb79da47b144c2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
390b353d1a1da3e9c6c0fd14fe650d69063c95d6
Fixed
788d585e62f487bc4536d454937f737b70d39a33
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2ba35b37f780c6410bb4bba9c3072596d8576702
Fixed
94dd411c18d7fff9e411555d5c662d29416501e4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
90ae20d47de602198eb69e6cd7a3db3420abfc08
Fixed
3fc09e1ca854bc234e007a56e0f7431f5e2defb5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10
Fixed
8ecd06277a7664f4ef018abae3abd3451d64e7a6

Affected versions

v6.*

v6.1.95
v6.10-rc3
v6.6.35
v6.9.6

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94dd411c18d7fff9e411555d5c662d29416501e4",
        "signature_version": "v1",
        "target": {
            "file": "net/netfilter/ipset/ip_set_core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "326574652377410874773892851153546621962",
                "138755469778921685069520776218250261796",
                "36614010016123833433507648879656038446",
                "119997001223198039012025147970635919306",
                "70959843543171492307528580070181076458",
                "161214841357101622036904032634644944170",
                "333423406711166378668303983676443825691",
                "285138110753696172077747438865828015856",
                "246172943507347689702502002141160348827",
                "15664527882070601522295956165258967349",
                "73967937994562294293921281888255514547"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2024-40993-147ffbe6"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ecd06277a7664f4ef018abae3abd3451d64e7a6",
        "signature_version": "v1",
        "target": {
            "file": "net/netfilter/ipset/ip_set_core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "326574652377410874773892851153546621962",
                "138755469778921685069520776218250261796",
                "36614010016123833433507648879656038446",
                "119997001223198039012025147970635919306",
                "70959843543171492307528580070181076458",
                "161214841357101622036904032634644944170",
                "333423406711166378668303983676443825691",
                "285138110753696172077747438865828015856",
                "246172943507347689702502002141160348827",
                "15664527882070601522295956165258967349",
                "73967937994562294293921281888255514547"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2024-40993-453a1174"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3fc09e1ca854bc234e007a56e0f7431f5e2defb5",
        "signature_version": "v1",
        "target": {
            "file": "net/netfilter/ipset/ip_set_core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "326574652377410874773892851153546621962",
                "138755469778921685069520776218250261796",
                "36614010016123833433507648879656038446",
                "119997001223198039012025147970635919306",
                "70959843543171492307528580070181076458",
                "161214841357101622036904032634644944170",
                "333423406711166378668303983676443825691",
                "285138110753696172077747438865828015856",
                "246172943507347689702502002141160348827",
                "15664527882070601522295956165258967349",
                "73967937994562294293921281888255514547"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2024-40993-55d46f60"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@523bed6489e089dd8040e72453fb79da47b144c2",
        "signature_version": "v1",
        "target": {
            "file": "net/netfilter/ipset/ip_set_core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "326574652377410874773892851153546621962",
                "138755469778921685069520776218250261796",
                "36614010016123833433507648879656038446",
                "119997001223198039012025147970635919306",
                "70959843543171492307528580070181076458",
                "161214841357101622036904032634644944170",
                "333423406711166378668303983676443825691",
                "285138110753696172077747438865828015856",
                "246172943507347689702502002141160348827",
                "15664527882070601522295956165258967349",
                "73967937994562294293921281888255514547"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2024-40993-7f0b4d22"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3799d02ae4208af08e81310770d8754863a246a1",
        "signature_version": "v1",
        "target": {
            "file": "net/netfilter/ipset/ip_set_core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "326574652377410874773892851153546621962",
                "138755469778921685069520776218250261796",
                "36614010016123833433507648879656038446",
                "119997001223198039012025147970635919306",
                "70959843543171492307528580070181076458",
                "161214841357101622036904032634644944170",
                "308690979633614444546122736028944006224",
                "285138110753696172077747438865828015856",
                "246172943507347689702502002141160348827",
                "15664527882070601522295956165258967349",
                "73967937994562294293921281888255514547"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2024-40993-84b6955a"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@72d9611968867cc4c5509e7708b1507d692b797a",
        "signature_version": "v1",
        "target": {
            "file": "net/netfilter/ipset/ip_set_core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "326574652377410874773892851153546621962",
                "138755469778921685069520776218250261796",
                "36614010016123833433507648879656038446",
                "119997001223198039012025147970635919306",
                "70959843543171492307528580070181076458",
                "161214841357101622036904032634644944170",
                "333423406711166378668303983676443825691",
                "285138110753696172077747438865828015856",
                "246172943507347689702502002141160348827",
                "15664527882070601522295956165258967349",
                "73967937994562294293921281888255514547"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2024-40993-871427ac"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@788d585e62f487bc4536d454937f737b70d39a33",
        "signature_version": "v1",
        "target": {
            "file": "net/netfilter/ipset/ip_set_core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "326574652377410874773892851153546621962",
                "138755469778921685069520776218250261796",
                "36614010016123833433507648879656038446",
                "119997001223198039012025147970635919306",
                "70959843543171492307528580070181076458",
                "161214841357101622036904032634644944170",
                "333423406711166378668303983676443825691",
                "285138110753696172077747438865828015856",
                "246172943507347689702502002141160348827",
                "15664527882070601522295956165258967349",
                "73967937994562294293921281888255514547"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2024-40993-d63fdfa4"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.95
Fixed
6.1.96
Type
ECOSYSTEM
Events
Introduced
6.6.35
Fixed
6.6.36
Type
ECOSYSTEM
Events
Introduced
6.9.6
Fixed
6.9.7