{"id":"CVE-2024-35898","state":"PUBLISHED","title":"netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()\n\nnft_unregister_flowtable_type() within nf_flow_inet_module_exit() can\nconcurrent with __nft_flowtable_type_get() within nf_tables_newflowtable().\nAnd thhere is not any protection when iterate over nf_tables_flowtables\nlist in __nft_flowtable_type_get(). Therefore, there is pertential\ndata-race of nf_tables_flowtables list entry.\n\nUse list_for_each_entry_rcu() to iterate over nf_tables_flowtables list\nin __nft_flowtable_type_get(), and use rcu_read_lock() in the caller\nnft_flowtable_type_get() to protect the entire type query process.","publishedAt":"2024-05-19T08:34:52.519Z","updatedAt":"2026-10-15T00:41:16.298Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"69d1fe14a680042ec913f22196b58e2c8ff1b007","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"a347bc8e6251eaee4b619da28020641eb5b0dd77","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"940d41caa71f0d3a52df2fde5fada524a993e331","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"2485bcfe05ee3cf9ca8923a94fa2e456924c79c8","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083b","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"8b891153b2e4dc0ca9d9dab8f619d49c740813df","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"e684b1674fd1ca4361812a491242ae871d6b2859","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"24225011d81b471acc0e1e315b7d9905459a6304","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/netfilter/nf_tables_api.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.16","versionType":"semver"},{"version":"4.19.312","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.274","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.215","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.154","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.85","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.26","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.5","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/netfilter/nf_tables_api.c"]}],"references":["https://git.kernel.org/stable/c/69d1fe14a680042ec913f22196b58e2c8ff1b007","https://git.kernel.org/stable/c/a347bc8e6251eaee4b619da28020641eb5b0dd77","https://git.kernel.org/stable/c/940d41caa71f0d3a52df2fde5fada524a993e331","https://git.kernel.org/stable/c/2485bcfe05ee3cf9ca8923a94fa2e456924c79c8","https://git.kernel.org/stable/c/9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083b","https://git.kernel.org/stable/c/8b891153b2e4dc0ca9d9dab8f619d49c740813df","https://git.kernel.org/stable/c/e684b1674fd1ca4361812a491242ae871d6b2859","https://git.kernel.org/stable/c/24225011d81b471acc0e1e315b7d9905459a6304","https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","https://cert-portal.siemens.com/productcert/html/ssa-265688.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35898.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-35898","state":"PUBLISHED","datePublished":"2024-05-19T08:34:52.519Z","dateUpdated":"2026-10-15T00:41:16.298Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-17T13:50:33.114Z"},"containers":{"cna":{"title":"netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()\n\nnft_unregister_flowtable_type() within nf_flow_inet_module_exit() can\nconcurrent with __nft_flowtable_type_get() within nf_tables_newflowtable().\nAnd thhere is not any protection when iterate over nf_tables_flowtables\nlist in __nft_flowtable_type_get(). Therefore, there is pertential\ndata-race of nf_tables_flowtables list entry.\n\nUse list_for_each_entry_rcu() to iterate over nf_tables_flowtables list\nin __nft_flowtable_type_get(), and use rcu_read_lock() in the caller\nnft_flowtable_type_get() to protect the entire type query process."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"69d1fe14a680042ec913f22196b58e2c8ff1b007","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"a347bc8e6251eaee4b619da28020641eb5b0dd77","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"940d41caa71f0d3a52df2fde5fada524a993e331","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"2485bcfe05ee3cf9ca8923a94fa2e456924c79c8","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083b","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"8b891153b2e4dc0ca9d9dab8f619d49c740813df","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"e684b1674fd1ca4361812a491242ae871d6b2859","versionType":"git"},{"version":"3b49e2e94e6ebb8b23d0955d9e898254455734f8","status":"affected","lessThan":"24225011d81b471acc0e1e315b7d9905459a6304","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/netfilter/nf_tables_api.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.16","versionType":"semver"},{"version":"4.19.312","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.274","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.215","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.154","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.85","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.26","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.5","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/netfilter/nf_tables_api.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/69d1fe14a680042ec913f22196b58e2c8ff1b007"},{"url":"https://git.kernel.org/stable/c/a347bc8e6251eaee4b619da28020641eb5b0dd77"},{"url":"https://git.kernel.org/stable/c/940d41caa71f0d3a52df2fde5fada524a993e331"},{"url":"https://git.kernel.org/stable/c/2485bcfe05ee3cf9ca8923a94fa2e456924c79c8"},{"url":"https://git.kernel.org/stable/c/9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083b"},{"url":"https://git.kernel.org/stable/c/8b891153b2e4dc0ca9d9dab8f619d49c740813df"},{"url":"https://git.kernel.org/stable/c/e684b1674fd1ca4361812a491242ae871d6b2859"},{"url":"https://git.kernel.org/stable/c/24225011d81b471acc0e1e315b7d9905459a6304"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached through the nfnetlink/nftables netlink socket interface (NFT_MSG_NEWFLOWTABLE batch message), which requires local system access. Per kernel scoring guidance, netfilter/nftables netlink paths are Local.\nAC:H - The attacker fully controls the reader side by spamming NFT_MSG_NEWFLOWTABLE, but the writer side is `nft_unregister_flowtable_type()`, reachable only from `nf_flow_inet_module_exit()` — i.e. an `rmmod` requiring real CAP_SYS_MODULE in the init namespace, which an unprivileged attacker cannot influence. Winning the window between latching `type` and `try_module_get(type->owner)` therefore depends on a privileged event outside attacker control.\nPR:L - `nfnetlink_rcv()` checks `netlink_net_capable(skb, CAP_NET_ADMIN)`, which evaluates against `sock_net(sk)->user_ns`, so an unprivileged user obtains the needed capability with `unshare -Urn`. No real root is required on the attacker's side of the race.\nUI:N - Exploitation requires only that the attacker issue netlink requests in a loop; no victim opens a file, mounts a filesystem, or otherwise participates. The concurrent administrative module unload is accounted for in Attack Complexity, not User Interaction.\nS:U - The race, the dangling pointer, and its consequences are all confined to the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - The unprotected traversal yields a dangling `struct nf_flowtable_type *` into freed module memory, which is then dereferenced (`type->family`, `type->owner`) and chased into `struct module` inside `try_module_get()`. Per kernel guidance a use-after-free is scored High, since reclaimed memory contents become readable through the stale pointer.\nI:H - `try_module_get()` performs `atomic_inc_not_zero(&module->refcnt)` through a pointer read from freed memory, and on success `nf_tables_newflowtable()` stores the stale `type` and invokes `type->init()` while `nft_flowtable_parse_hook()` installs `type->hook` as a live packet-processing callback — a control-flow hijack primitive if the module region is reclaimed. Use-after-free with function-pointer dereference is High integrity impact.\nA:H - Module memory is released via `execmem_free()`, so dereferencing the stale `type` typically faults on unmapped kernel address space, producing an oops/panic. Any use-after-free of this kind is scored High availability impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:30:49.837Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"4.19.312"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"5.4.274"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"5.10.215"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"5.15.154"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.1.85"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.6.26"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.8.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-05-29T18:29:13.616197Z","id":"CVE-2024-35898","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-29T19:40:06.574Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/69d1fe14a680042ec913f22196b58e2c8ff1b007","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/a347bc8e6251eaee4b619da28020641eb5b0dd77","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/940d41caa71f0d3a52df2fde5fada524a993e331","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/2485bcfe05ee3cf9ca8923a94fa2e456924c79c8","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8b891153b2e4dc0ca9d9dab8f619d49c740813df","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e684b1674fd1ca4361812a491242ae871d6b2859","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/24225011d81b471acc0e1e315b7d9905459a6304","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:21:48.658Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V1.1.1","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T00:41:16.298Z"},"x_adpType":"supplier"}]}}}