Linux
net/smc: stop killed, freed and out_of_sync sharing a byte
In the Linux kernel, the following vulnerability has been resolved: net/smc: stop killed, freed and out_of_sync sharing a byte The three connection state flags are single-bit bitfields, so they occupy one byte of struct smc_connection and every store to one is a read-modify-write of the other two: u8 killed : 1; u8 freed : 1; u8 out_of_sync : 1; They are not written under a common lock. smc_cdc_msg_validate() sets out_of_sync from the receive tasklet, while smc_conn_kill() sets killed from process context under lock_sock(), and the receive path does not defer to the backlog when the socket is owned -- smc_cdc_msg_recv() takes only bh_lock_sock(). Give each flag its own byte so a store no longer touches its neighbours. All readers test them as booleans and are unchanged. struct smc_connection grows by two bytes.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b286a0651e4404ab96cdfdcdad8a839a26b3751e, < a6efc0f4dbdba6595d89cdaf2d8f26f68be16f0b
- >= b286a0651e4404ab96cdfdcdad8a839a26b3751e, < 297e96f38d3e4f1a3b84068950dd5c7a55bbdc7b
- >= b286a0651e4404ab96cdfdcdad8a839a26b3751e, < 09a9cbadc05f452405de31012bd2c428b601291a
- >= b286a0651e4404ab96cdfdcdad8a839a26b3751e, < 313f79149eb337411c64e2c247234b62ef9a3cb9
- >= b286a0651e4404ab96cdfdcdad8a839a26b3751e, < 2cb7a8d64b7e8ccdc69bbe48fe9c4eaa79c33aec
- >= b286a0651e4404ab96cdfdcdad8a839a26b3751e, < db51a8658c11a82432b64999519a269c3aabb447
Fixed in a6efc0f4dbdba6595d89cdaf2d8f26f68be16f0b, 297e96f38d3e4f1a3b84068950dd5c7a55bbdc7b, 09a9cbadc05f452405de31012bd2c428b601291a, 313f79149eb337411c64e2c247234b62ef9a3cb9, 2cb7a8d64b7e8ccdc69bbe48fe9c4eaa79c33aec, db51a8658c11a82432b64999519a269c3aabb447
- 5.8
Fixed in 0, 6.1.191, 6.6.160, 6.12.112, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to a6efc0f4dbdba6595d89cdaf2d8f26f68be16f0b or 297e96f38d3e4f1a3b84068950dd5c7a55bbdc7b or 09a9cbadc05f452405de31012bd2c428b601291a or 313f79149eb337411c64e2c247234b62ef9a3cb9 or 2cb7a8d64b7e8ccdc69bbe48fe9c4eaa79c33aec or db51a8658c11a82432b64999519a269c3aabb447 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.112 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.