CVE-2024-35898

Source
https://cve.org/CVERecord?id=CVE-2024-35898
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35898.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35898
Downstream
Related
Published
2024-05-19T08:34:52.519Z
Modified
2026-05-28T03:53:10.357241255Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()
Details

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

netfilter: nf_tables: Fix potential data-race in _nftflowtabletypeget()

nftunregisterflowtabletype() within nfflowinetmodule_exit() can concurrent with __nftflowtabletypeget() within nftablesnewflowtable(). And thhere is not any protection when iterate over nftables_flowtables list in _nftflowtabletypeget(). Therefore, there is pertential data-race of nftablesflowtables list entry.

Use listforeachentryrcu() to iterate over nftablesflowtables list in __nftflowtabletypeget(), and use rcureadlock() in the caller nftflowtabletypeget() to protect the entire type query process.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35898.json",
    "cna_assigner": "Linux"
}
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
3b49e2e94e6ebb8b23d0955d9e898254455734f8
Fixed
69d1fe14a680042ec913f22196b58e2c8ff1b007
Fixed
a347bc8e6251eaee4b619da28020641eb5b0dd77
Fixed
940d41caa71f0d3a52df2fde5fada524a993e331
Fixed
2485bcfe05ee3cf9ca8923a94fa2e456924c79c8
Fixed
9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083b
Fixed
8b891153b2e4dc0ca9d9dab8f619d49c740813df
Fixed
e684b1674fd1ca4361812a491242ae871d6b2859
Fixed
24225011d81b471acc0e1e315b7d9905459a6304

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35898.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.16.0
Fixed
4.19.312
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.274
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.215
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.154
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.85
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.26
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35898.json"