xfrm: espintcp: reorder operations within espintcp_init_sk
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fc33bc17ec5c127d0b80b2650c4e83ef64079368, Kernel 3eac7cf352cedd05215bdc7e9786c3ee4b4b43b2, Kernel 505e5d5bf1248fc011523bbe7feb5ace3cda5d62 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: xfrm: espintcp: reorder operations within espintcp_init_sk When enabled on a socket, espintcp sets the socket callbacks to its own before it has finished setting up its context and published it as icsk_ulp_data. Any one of those callbacks that gets called before will dereference a NULL icsk_ulp_data. Fix this by reording the operations, and add memory barriers to ensure callers will have a struct espintcp_ctx available. Add a few WRITE_ONCE/READ_ONCE too while we're there.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 <fc33bc17ec5c127d0b80b2650c4e83ef64079368, >=e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 <3eac7cf352cedd05215bdc7e9786c3ee4b4b43b2, >=e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 <505e5d5bf1248fc011523bbe7feb5ace3cda5d62, >=e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 <6653f281a84dfc050042b837fbf0a1ab87f8f645, >=e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 <b3db5d2f73f3246bf42865f317727338586bf9e7, >=e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 <ccee76927f45868e9abe318b95cadae728834ccd, >=e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 <d50065a04b8b2edd9215a1960a48c4a4667a5b8c, >=e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 <f9a11716c8445b496e9fafeec7e8412d384d02e2, =5.6 | fc33bc17ec5c127d0b80b2650c4e83ef64079368, 3eac7cf352cedd05215bdc7e9786c3ee4b4b43b2, 505e5d5bf1248fc011523bbe7feb5ace3cda5d62, 6653f281a84dfc050042b837fbf0a1ab87f8f645, b3db5d2f73f3246bf42865f317727338586bf9e7, ccee76927f45868e9abe318b95cadae728834ccd, d50065a04b8b2edd9215a1960a48c4a4667a5b8c, f9a11716c8445b496e9fafeec7e8412d384d02e2 |
| linux-kernel: Kernel | >=5.16.0 <6.1.193, >=5.6.0 <5.10.275, >=6.13.0 <6.18.64, >=6.19.0 <7.3.5, >=6.2.0 <6.6.163, >=6.7.0 <6.12.118, >=5.11.0 <5.15.226 | 6.1.193, 5.10.275, 6.18.64, 7.3.5, 6.6.163, 6.12.118, 5.15.226 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket