net: tls: explicitly disallow disconnect
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.237, 5.15.181, 6.1.135, 6.6.88, 6.12.24, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: net: tls: explicitly disallow disconnect syzbot discovered that it can disconnect a TLS socket and then run into all sort of unexpected corner cases. I have a vague recollection of Eric pointing this out to us a long time ago. Supporting disconnect is really hard, for one thing if offload is enabled we'd need to wait for all packets to be acked. Disconnect is not commonly used, disallow it. The immediate problem syzbot run into is the warning in the strp, but that's just the easiest bug to trigger: WARNING: CPU: 0 PID: 5834 at net/tls/tls_strp.c:486 tls_strp_msg_load+0x72e/0xa80 net/tls/tls_strp.c:486 RIP: 0010:tls_strp_msg_load+0x72e/0xa80 net/tls/tls_strp.c:486 Call Trace: <TASK> tls_rx_rec_wait+0x280/0xa60 net/tls/tls_sw.c:1363 tls_sw_recvmsg+0x85c/0x1c30 net/tls/tls_sw.c:2043 inet6_recvmsg+0x2c9/0x730 net/ipv6/af_inet6.c:678 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x109/0x280 net/socket.c:1045 __sys_recvfrom+0x202/0x380 net/socket.c:2237
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 · fixed in 7bdcf5bc35ae59fc4a0fa23276e84b4d1534a3cf; From 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 · fixed in ac91c6125468be720eafde9c973994cb45b61d44; From 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 · fixed in f3ce4d3f874ab7919edca364c147ac735f9f1d04; From 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 · fixed in 2bcad8fefcecdd5f005d8c550b25d703c063c34a; From 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 · fixed in 9fcbca0f801580cbb583e9cb274e2c7fbe766ca6; From 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 · fixed in c665bef891e8972e1d3ce5bbc0d42a373346a2c3; From 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 · fixed in 8513411ec321942bd3cfed53d5bb700665c67d86; From 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 · fixed in 5071a1e606b30c0c11278d3c6620cd6a24724cf6
- Linux Linux
4.13
- KernelLinux
From 4.13.0 · fixed in 5.10.237; From 5.11.0 · fixed in 5.15.181; From 5.16.0 · fixed in 6.1.135; From 6.2.0 · fixed in 6.6.88; From 6.7.0 · fixed in 6.12.24; From 6.13.0 · fixed in 6.13.12; From 6.14.0 · fixed in 6.14.3
References 8
git.kernel.org
- stable/c/7bdcf5bc35ae59fc4a0fa23276e84b4d1534a3cf
- stable/c/ac91c6125468be720eafde9c973994cb45b61d44
- stable/c/f3ce4d3f874ab7919edca364c147ac735f9f1d04
- stable/c/2bcad8fefcecdd5f005d8c550b25d703c063c34a
- stable/c/9fcbca0f801580cbb583e9cb274e2c7fbe766ca6
- stable/c/c665bef891e8972e1d3ce5bbc0d42a373346a2c3
- stable/c/8513411ec321942bd3cfed53d5bb700665c67d86
- stable/c/5071a1e606b30c0c11278d3c6620cd6a24724cf6