netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- 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
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- 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
- stable/c/69d1fe14a680042ec913f22196b58e2c8ff1b007
- stable/c/a347bc8e6251eaee4b619da28020641eb5b0dd77
- stable/c/940d41caa71f0d3a52df2fde5fada524a993e331
- stable/c/2485bcfe05ee3cf9ca8923a94fa2e456924c79c8
- stable/c/9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083b
- stable/c/8b891153b2e4dc0ca9d9dab8f619d49c740813df
- stable/c/e684b1674fd1ca4361812a491242ae871d6b2859
- stable/c/24225011d81b471acc0e1e315b7d9905459a6304