netfilter: nf_conntrack: defer invalid log until after unlock
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ca97360eba4b3dc67f1804625542f4ccc774242a, Kernel 0424186d570aa4d1ad17f516afb86bd9eaa4f42e, Kernel 2d19b95c9723001f214f7a47d67b09f46238f200 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack: defer invalid log until after unlock TCP and SCTP conntrack paths can emit invalid-packet logs while ct->lock is still held. When invalid logging is routed to nfnetlink_log and conntrack export is enabled, the log path can re-enter conntrack netlink glue and dump the same conntrack again. Protocol attribute dumping may take ct->lock, so logging while holding that lock can deadlock. Defer the TCP invalid logs by storing only the minimal log context while ct->lock is held and emitting the log after unlocking. Also make the TCP timeout-lowering invalid path return whether a log is needed, then emit that log after unlocking. Do the same for the SCTP invalid state-transition log that can be reached while ct->lock is held. Add a lockdep assertion to nf_ct_l4proto_log_invalid() so future callers that log invalid conntracks while holding ct->lock are caught outside TCP and SCTP as well.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d9a6f0d0df1899ff9086a57abc600e414f4b8cdd <ca97360eba4b3dc67f1804625542f4ccc774242a, >=d9a6f0d0df1899ff9086a57abc600e414f4b8cdd <0424186d570aa4d1ad17f516afb86bd9eaa4f42e, >=d9a6f0d0df1899ff9086a57abc600e414f4b8cdd <2d19b95c9723001f214f7a47d67b09f46238f200, >=d9a6f0d0df1899ff9086a57abc600e414f4b8cdd <63853eb20bba4e00b7cd0b8cfc19337bbaaf5037, >=d9a6f0d0df1899ff9086a57abc600e414f4b8cdd <9480fcf70a5aa9d320088a01c95df0e5e6391f4a, >=d9a6f0d0df1899ff9086a57abc600e414f4b8cdd <c0224327b7cbed9d3198e8dbec847281053dcd06, =6.1 | ca97360eba4b3dc67f1804625542f4ccc774242a, 0424186d570aa4d1ad17f516afb86bd9eaa4f42e, 2d19b95c9723001f214f7a47d67b09f46238f200, 63853eb20bba4e00b7cd0b8cfc19337bbaaf5037, 9480fcf70a5aa9d320088a01c95df0e5e6391f4a, c0224327b7cbed9d3198e8dbec847281053dcd06 |
| linux-kernel: Kernel | >=6.13.0 <6.18.45, >=6.19.0 <7.1.9, >=6.2.0 <6.6.152, >=6.7.0 <6.12.104, >=6.1.0 <6.1.184 | 6.18.45, 7.1.9, 6.6.152, 6.12.104, 6.1.184 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket