sctp: handle the error returned from sctp_auth_asoc_init_active_key
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 8 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
In the Linux kernel, the following vulnerability has been resolved: sctp: handle the error returned from sctp_auth_asoc_init_active_key When it returns an error from sctp_auth_asoc_init_active_key(), the active_key is actually not updated. The old sh_key will be freeed while it's still used as active key in asoc. Then an use-after-free will be triggered when sending patckets, as found by syzbot: sctp_auth_shkey_hold+0x22/0xa0 net/sctp/auth.c:112 sctp_set_owner_w net/sctp/socket.c:132 [inline] sctp_sendmsg_to_asoc+0xbd5/0x1a20 net/sctp/socket.c:1863 sctp_sendmsg+0x1053/0x1d50 net/sctp/socket.c:2025 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:819 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 This patch is to fix it by not replacing the sh_key when it returns errors from sctp_auth_asoc_init_active_key() in sctp_auth_set_key(). For sctp_auth_set_active_key(), old active_key_id will be set back to asoc->active_key_id when the same thing happens.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.19.199 to before 4.19.262; 5.4.136 to before 5.4.220; 5.10.54 to before 5.10.150; 5.13.6 to before 5.14 | 4.19.262, 5.4.220, 5.10.150, 5.14 | Patch available | CNA |
| Linux | Linux | 5.14 and later | 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1 | Patch available | CNA |
- Linux VendorLinux Affected 4.19.199 to before 4.19.262; 5.4.136 to before 5.4.220; 5.10.54 to before 5.10.150; 5.13.6 to before 5.14 Fixed in 4.19.262, 5.4.220, 5.10.150, 5.14 Patch available CNA
- Linux VendorLinux Affected 5.14 and later Fixed in 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1 Patch available CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.19.199 to before 4.19.262; 5.4.136 to before 5.4.220; 5.10.54 to before 5.10.150; 5.13.6 to before 5.14; 5.14.1 to before 5.15.75; 5.16 to before 5.19.17; 6.0 to before 6.0.3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.14:-:*:*:*:*:*:* | 5.14 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.14:rc3:*:*:*:*:*:* | 5.14 rc3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.14:rc4:*:*:*:*:*:* | 5.14 rc4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.14:rc5:*:*:*:*:*:* | 5.14 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.14:rc6:*:*:*:*:*:* | 5.14 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.14:rc7:*:*:*:*:*:* | 5.14 rc7 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.19.199 to before 4.19.262; 5.4.136 to before 5.4.220; 5.10.54 to before 5.10.150; 5.13.6 to before 5.14; 5.14.1 to before 5.15.75; 5.16 to before 5.19.17; 6.0 to before 6.0.3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.14:-:*:*:*:*:*:* Versions 5.14 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.14:rc3:*:*:*:*:*:* Versions 5.14 rc3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.14:rc4:*:*:*:*:*:* Versions 5.14 rc4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.14:rc5:*:*:*:*:*:* Versions 5.14 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.14:rc6:*:*:*:*:*:* Versions 5.14 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.14:rc7:*:*:*:*:*:* Versions 5.14 rc7 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.19.262, 5.4.220, 5.10.150, 5.14
- Fix · CNA Linux (Linux) Fixed in 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1
Red Hat 3 advisories
- RHSA-2023:7398 Released 2023-11-21 · Red Hat rating Importantkernel security and bug fix update
- Red Hat CodeReady Linux Builder EUS (v.8.6) kernel-tools-libs-devel-4.18.0-372.80.1.el8_6
- Red Hat Enterprise Linux BaseOS EUS (v.8.6) bpftool-4.18.0-372.80.1.el8_6, kernel-4.18.0-372.80.1.el8_6, kernel-abi-stablelists-4.18.0-372.80.1.el8_6 +19
- Red Hat Virtualization 4 Hypervisor for RHEL 8 kernel-devel-4.18.0-372.80.1.el8_6, perf-4.18.0-372.80.1.el8_6
- RHSA-2023:2951 Released 2023-05-16 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-477.10.1.el8_8, kernel-4.18.0-477.10.1.el8_8, kernel-abi-stablelists-4.18.0-477.10.1.el8_8 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-477.10.1.el8_8
- RHSA-2023:2458 Released 2023-05-09 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-284.11.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.11.1.el9_2, kernel-64k-devel-5.14.0-284.11.1.el9_2 +10
- Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.0.0-284.11.1.el9_2, kernel-5.14.0-284.11.1.el9_2, kernel-64k-5.14.0-284.11.1.el9_2 +29
- Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-284.11.1.el9_2
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat CodeReady Linux Builder EUS (v.8.6) | Fixed | RHSA-2023:7398 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:2458 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2023:2951 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2023:2458 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.6) | Fixed | RHSA-2023:7398 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2023:2951 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2023:2458 |
| Red Hat Virtualization 4 Hypervisor for RHEL 8 | Fixed | RHSA-2023:7398 |
Not affected: 3 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Timeline
- 2026-10-02 Threatist record created from CVE-2022-50243
- 2026-10-03 Alias added: GHSA-2hwr-p3mh-h7f6
References
Patch 7
- https://git.kernel.org/stable/c/b8fa99a3a11bdd77fef6b4a97f1021eb30b5ba40
- https://git.kernel.org/stable/c/382ff44716603a54f5fd238ddec6a2468e217612
- https://git.kernel.org/stable/c/f65955340e0044f5c41ac799a01698ac7dee8a4e
- https://git.kernel.org/stable/c/19d636b663e0e92951bba5fced929ca7fd25c552
- https://git.kernel.org/stable/c/0f90099d18e3abdc01babf686f41f63fe04939c1
- https://git.kernel.org/stable/c/3b0fcf5e29c0940e1169ce9c44f73edd98bdf12d
- https://git.kernel.org/stable/c/022152aaebe116a25c39818a07e175a8cd3c1e11
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2022-50243 · CVE Program
- CVE-2022-50243 · NVD
- FIRST EPSS
- GHSA-2hwr-p3mh-h7f6 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-50243 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences