Bug 1226570 (CVE-2021-47591) - VUL-0: CVE-2021-47591: kernel: mptcp: remove tcp ulp setsockopt support
Summary: VUL-0: CVE-2021-47591: kernel: mptcp: remove tcp ulp setsockopt support
Status: NEW
Alias: CVE-2021-47591
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Davide Benini
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/411353/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47591:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-20 09:17 UTC by SMASH SMASH
Modified: 2024-06-21 15:34 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-06-20 09:17:02 UTC
In the Linux kernel, the following vulnerability has been resolved:

mptcp: remove tcp ulp setsockopt support

TCP_ULP setsockopt cannot be used for mptcp because its already
used internally to plumb subflow (tcp) sockets to the mptcp layer.

syzbot managed to trigger a crash for mptcp connections that are
in fallback mode:

KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
CPU: 1 PID: 1083 Comm: syz-executor.3 Not tainted 5.16.0-rc2-syzkaller #0
RIP: 0010:tls_build_proto net/tls/tls_main.c:776 [inline]
[..]
 __tcp_set_ulp net/ipv4/tcp_ulp.c:139 [inline]
 tcp_set_ulp+0x428/0x4c0 net/ipv4/tcp_ulp.c:160
 do_tcp_setsockopt+0x455/0x37c0 net/ipv4/tcp.c:3391
 mptcp_setsockopt+0x1b47/0x2400 net/mptcp/sockopt.c:638

Remove support for TCP_ULP setsockopt.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47591
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2021/CVE-2021-47591.mbox
https://git.kernel.org/stable/c/3de0c86d42f841d1d64f316cd949e65c566f0734
https://git.kernel.org/stable/c/404cd9a22150f24acf23a8df2ad0c094ba379f57
https://www.cve.org/CVERecord?id=CVE-2021-47591