CVE-2024-49944 sctp: set sk_state back to CLOSED if autobind fails in sctp_listen_start
- Published
- Updated
- Exploit status
- No public exploit known
Description
In the Linux kernel, the following vulnerability has been resolved:
sctp: set sk_state back to CLOSED if autobind fails in sctp_listen_start
In sctp_listen_start() invoked by sctp_inet_listen(), it should set the
sk_state back to CLOSED if sctp_autobind() fails due to whatever reason.
Otherwise, next time when calling sctp_inet_listen(), if sctp_sk(sk)->reuse
is already set via setsockopt(SCTP_REUSE_PORT), sctp_sk(sk)->bind_hash will
be dereferenced as sk_state is LISTENING, which causes a crash as bind_hash
is NULL.
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
RIP: 0010:sctp_inet_listen+0x7f0/0xa20 net/sctp/socket.c:8617
Call Trace:
<TASK>
__sys_listen_socket net/socket.c:1883 [inline]
__sys_listen+0x1b7/0x230 net/socket.c:1894
__do_sys_listen net/socket.c:1902 [inline]
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 5.15.173.1-1 | 5.15.173.1-1 |
| debian/linux(Debian:12) | < 6.1.115-1 | 6.1.115-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
Show 44 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.11.4-1 | 6.11.4-1 |
| debian/linux(Debian:14) | < 6.11.4-1 | 6.11.4-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-127.137 | 5.15.0-127.137 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < 89bbead9d897c77d0b566349c8643030ff2abeba | 89bbead9d897c77d0b566349c8643030ff2abeba |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < 0e4e2e60556c6ed00e8450b720f106a268d23062 | 0e4e2e60556c6ed00e8450b720f106a268d23062 |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < dd70c8a89ef99c3d53127fe19e51ef47c3f860fa | dd70c8a89ef99c3d53127fe19e51ef47c3f860fa |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < e7a8442195e8ebd97df467ce4742980ab57edcce | e7a8442195e8ebd97df467ce4742980ab57edcce |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < 9230a59eda0878d7ecaa901d876aec76f57bd455 | 9230a59eda0878d7ecaa901d876aec76f57bd455 |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < 7f64cb5b4d8c872296eda0fdce3bcf099eec7aa7 | 7f64cb5b4d8c872296eda0fdce3bcf099eec7aa7 |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < f032e1dac30b3376c7d6026fb01a8c403c47a80d | f032e1dac30b3376c7d6026fb01a8c403c47a80d |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < e914bf68dab88815a7ae7b7a3a5e8913c8ff14a5 | e914bf68dab88815a7ae7b7a3a5e8913c8ff14a5 |
| Linux kernel | >= 5e8f3f703ae4e4af65e2695e486b3cd198328863, < 8beee4d8dee76b67c75dc91fd8185d91e845c160 | 8beee4d8dee76b67c75dc91fd8185d91e845c160 |
| Linux kernel | = 2.6.30 | No fix listed |
| Linux kernel | < 4.19.323 | 4.19.323 |
| Linux kernel | < 5.4.285 | 5.4.285 |
| Linux kernel | < 5.10.227 | 5.10.227 |
| Linux kernel | < 5.15.168 | 5.15.168 |
| Linux kernel | < 6.1.113 | 6.1.113 |
| Linux kernel | < 6.6.55 | 6.6.55 |
| Linux kernel | < 6.10.14 | 6.10.14 |
| Linux kernel | < 6.11.3 | 6.11.3 |
| Linux kernel | < 6.12 | 6.12 |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 |
| Siemens RUGGEDCOM RST2428P | < V3.2 | V3.2 |
| Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | < V3.2 | V3.2 |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.2 | V3.2 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-54.56 | 6.8.0-54.56 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1019.23 | 6.8.0-1019.23 |
| Linux kernel | >= 2.6.30, < 5.10.227 | 5.10.227 |
| Linux kernel | >= 5.11, < 5.15.168 | 5.15.168 |
| Linux kernel | >= 5.16, < 6.1.113 | 6.1.113 |
| Linux kernel | >= 6.2, < 6.6.55 | 6.6.55 |
| Linux kernel | >= 6.7, < 6.10.14 | 6.10.14 |
| Linux kernel | >= 6.11, < 6.11.3 | 6.11.3 |
| Linux kernel | = 6.12-rc1 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-49944 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7166-1 vendor-advisory
- USN-7166-2 vendor-advisory
- USN-7166-3 vendor-advisory
- USN-7186-1 vendor-advisory
- USN-7186-2 vendor-advisory
- USN-7194-1 vendor-advisory
- USN-7166-4 vendor-advisory
- USN-7276-1 vendor-advisory
- USN-7277-1 vendor-advisory
- USN-7293-1 vendor-advisory
- USN-7294-1 vendor-advisory
- USN-7295-1 vendor-advisory
- USN-7301-1 vendor-advisory
- USN-7303-1 vendor-advisory
- USN-7304-1 vendor-advisory
- USN-7294-2 vendor-advisory
- USN-7294-3 vendor-advisory
- USN-7303-2 vendor-advisory
- USN-7310-1 vendor-advisory
- USN-7311-1 vendor-advisory
- USN-7303-3 vendor-advisory
- USN-7294-4 vendor-advisory
- USN-7384-1 vendor-advisory
- USN-7385-1 vendor-advisory
- USN-7386-1 vendor-advisory
- USN-7393-1 vendor-advisory
- USN-7384-2 vendor-advisory
- USN-7401-1 vendor-advisory
- USN-7403-1 vendor-advisory
- USN-7413-1 vendor-advisory
- USN-7468-1 vendor-advisory
- USN-7496-1 vendor-advisory
- USN-7496-3 vendor-advisory
- USN-7496-4 vendor-advisory
- USN-7496-5 vendor-advisory
- USN-7506-1 vendor-advisory
- USN-7506-2 vendor-advisory
- USN-7506-3 vendor-advisory
- USN-7506-4 vendor-advisory
- USN-7539-1 vendor-advisory
- USN-7540-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org
- lists.debian.org
- cert-portal.siemens.com
- cert-portal.siemens.com