netfilter: nf_tables: unconditionally bump set->nelems before insertion
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4.10, Kernel 022effa9c54903858e443b1225370e6c758d03f6, Kernel 25841e8d4241c6c3763e70ae95050f8108707b46 and 13 more.
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: unconditionally bump set->nelems before insertion In case that the set is full, a new element gets published then removed without waiting for the RCU grace period, while RCU reader can be walking over it already. To address this issue, add the element transaction even if set is full, but toggle the set_full flag to report -ENFILE so the abort path safely unwinds the set to its previous state. As for element updates, decrement set->nelems to restore it. A simpler fix is to call synchronize_rcu() in the error path. However, with a large batch adding elements to already maxed-out set, this could cause noticeable slowdown of such batches.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.9.33 <4.10, >=35d0ac9070ef619e3bf44324375878a1c540387b <022effa9c54903858e443b1225370e6c758d03f6, >=35d0ac9070ef619e3bf44324375878a1c540387b <25841e8d4241c6c3763e70ae95050f8108707b46, >=35d0ac9070ef619e3bf44324375878a1c540387b <25fcaef7948912652905e96922f36583a84fffed, >=35d0ac9070ef619e3bf44324375878a1c540387b <6826131c7674329335ca25df2550163eb8a1fd0c, >=35d0ac9070ef619e3bf44324375878a1c540387b <86bc4b1a0f672d47ac19f9022432cb6a2e01cb33, >=35d0ac9070ef619e3bf44324375878a1c540387b <ccb8c8f3c1127cf34d18c737309897c68046bf21, >=35d0ac9070ef619e3bf44324375878a1c540387b <def602e498a4f951da95c95b1b8ce8ae68aa733a, >=35d0ac9070ef619e3bf44324375878a1c540387b <e3ccb11fc8249759d23326038c8db987ddaabc77, =4.10, =fefdd79403e89b0c673965343b92e2e01e2713a8 | 4.10, 022effa9c54903858e443b1225370e6c758d03f6, 25841e8d4241c6c3763e70ae95050f8108707b46, 25fcaef7948912652905e96922f36583a84fffed, 6826131c7674329335ca25df2550163eb8a1fd0c, 86bc4b1a0f672d47ac19f9022432cb6a2e01cb33, ccb8c8f3c1127cf34d18c737309897c68046bf21, def602e498a4f951da95c95b1b8ce8ae68aa733a, e3ccb11fc8249759d23326038c8db987ddaabc77 |
| linux-kernel: Kernel | >=4.9.33 <4.10, >=5.11.0 <5.15.224, >=5.16.0 <6.1.177, >=6.13.0 <6.18.17, >=6.19.0 <6.19.7, >=6.2.0 <6.6.141, >=6.7.0 <6.12.91, >=4.10.0 <5.10.273 | 4.10, 5.15.224, 6.1.177, 6.18.17, 6.19.7, 6.6.141, 6.12.91, 5.10.273 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket