Skip to main content
← All vulnerabilities
CVE-2024-35898

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.19.312, 5.4.274, 5.10.215, 5.15.154, 6.1.85, and 2 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux 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 Linux

    4.16

  • KernelLinux

    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

References 8

git.kernel.org