CVE-2024-35898

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

State
Published
Severity
7.0 High
Published
May 19, 2024
Updated
Oct 15, 2026
Reserved
May 17, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3b49e2e94e6ebb8b23d0955d9e898254455734f8 to before 69d1fe14a680042ec913f22196b58e2c8ff1b007Affected
  • 3b49e2e94e6ebb8b23d0955d9e898254455734f8 to before a347bc8e6251eaee4b619da28020641eb5b0dd77Affected
  • 3b49e2e94e6ebb8b23d0955d9e898254455734f8 to before 940d41caa71f0d3a52df2fde5fada524a993e331Affected
  • 3b49e2e94e6ebb8b23d0955d9e898254455734f8 to before 2485bcfe05ee3cf9ca8923a94fa2e456924c79c8Affected
  • 3b49e2e94e6ebb8b23d0955d9e898254455734f8 to before 9b5b7708ec2be21dd7ef8ca0e3abe4ae9f3b083bAffected
  • 3b49e2e94e6ebb8b23d0955d9e898254455734f8 to before 8b891153b2e4dc0ca9d9dab8f619d49c740813dfAffected
  • 3b49e2e94e6ebb8b23d0955d9e898254455734f8 to before e684b1674fd1ca4361812a491242ae871d6b2859Affected
  • 3b49e2e94e6ebb8b23d0955d9e898254455734f8 to before 24225011d81b471acc0e1e315b7d9905459a6304Affected
LinuxLinux
  • 4.16Affected
  • before 4.16Not affected
  • 4.19.312 through 4.19.*Not affected
  • 5.4.274 through 5.4.*Not affected
  • 5.10.215 through 5.10.*Not affected
  • 5.15.154 through 5.15.*Not affected
  • 6.1.85 through 6.1.*Not affected
  • 6.6.26 through 6.6.*Not affected
  • 6.8.5 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.