can: j1939: prevent deadlock by changing j1939_socks_lock to rwlock
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 14 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-667 and the CVSS impact.
Summary
In the Linux kernel, the following vulnerability has been resolved: can: j1939: prevent deadlock by changing j1939_socks_lock to rwlock The following 3 locks would race against each other, causing the deadlock situation in the Syzbot bug report: - j1939_socks_lock - active_session_list_lock - sk_session_queue_lock A reasonable fix is to change j1939_socks_lock to an rwlock, since in the rare situations where a write lock is required for the linked list that j1939_socks_lock is protecting, the code does not attempt to acquire any more locks. This would break the circular lock dependency, where, for example, the current thread already locks j1939_socks_lock and attempts to acquire sk_session_queue_lock, and at the same time, another thread attempts to acquire j1939_socks_lock while holding sk_session_queue_lock. NOTE: This patch along does not fix the unregister_netdevice bug reported by Syzbot; instead, it solves a deadlock situation to prepare for one or more further patches to actually fix the Syzbot bug, which appears to be a reference counting problem within the j1939 codebase. [mkl: remove unrelated newline change]
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.15 and later | 5.15.149, 6.1.79, 6.6.18, 6.7.6, 6.8 | Patch available | CNA |
- Linux VendorLinux Affected 5.15 and later Fixed in 5.15.149, 6.1.79, 6.6.18, 6.7.6, 6.8 Patch available CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | before 5.15.149; 5.16 to before 6.1.79; 6.2 to before 6.6.18; 6.7 to before 6.7.6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* | 6.8 rc1 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* | 6.8 rc2 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:* | 6.8 rc3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:* | 6.8 rc4 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions before 5.15.149; 5.16 to before 6.1.79; 6.2 to before 6.6.18; 6.7 to before 6.7.6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* Versions 6.8 rc1 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* Versions 6.8 rc2 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:* Versions 6.8 rc3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:* Versions 6.8 rc4 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.15.149, 6.1.79, 6.6.18, 6.7.6, 6.8
Red Hat 5 advisories
- RHSA-2026:0576 Released 2026-01-14 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux AppStream E4S (v.9.0) kernel-debug-devel-5.14.0-70.161.1.el9_0, kernel-debug-devel-matched-5.14.0-70.161.1.el9_0, kernel-devel-5.14.0-70.161.1.el9_0 +5
- Red Hat Enterprise Linux BaseOS E4S (v.9.0) bpftool-5.14.0-70.161.1.el9_0, kernel-5.14.0-70.161.1.el9_0, kernel-abi-stablelists-5.14.0-70.161.1.el9_0 +14
- RHSA-2026:0537 Released 2026-01-14 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux NFV E4S (v.9.0) kernel-rt-5.14.0-70.161.1.rt21.233.el9_0, kernel-rt-core-5.14.0-70.161.1.rt21.233.el9_0, kernel-rt-debug-5.14.0-70.161.1.rt21.233.el9_0 +9
- Red Hat Enterprise Linux Real Time E4S (v.9.0) kernel-rt-5.14.0-70.161.1.rt21.233.el9_0, kernel-rt-core-5.14.0-70.161.1.rt21.233.el9_0, kernel-rt-debug-5.14.0-70.161.1.rt21.233.el9_0 +7
- RHSA-2024:4583 Released 2024-07-17 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-427.26.1.el9_4, kernel-64k-debug-devel-matched-5.14.0-427.26.1.el9_4, kernel-64k-devel-5.14.0-427.26.1.el9_4 +11
- Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.3.0-427.26.1.el9_4, kernel-5.14.0-427.26.1.el9_4, kernel-64k-5.14.0-427.26.1.el9_4 +29
- Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-427.26.1.el9_4, libperf-5.14.0-427.26.1.el9_4
- Red Hat Enterprise Linux NFV (v. 9) kernel-rt-5.14.0-427.26.1.el9_4, kernel-rt-core-5.14.0-427.26.1.el9_4, kernel-rt-debug-5.14.0-427.26.1.el9_4 +11
- Red Hat Enterprise Linux RT (v. 9) kernel-rt-5.14.0-427.26.1.el9_4, kernel-rt-core-5.14.0-427.26.1.el9_4, kernel-rt-debug-5.14.0-427.26.1.el9_4 +9
Show 2 more Red Hat advisories
- RHSA-2024:4554 Released 2024-07-15 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux Real Time EUS (v.9.2) kernel-rt-5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-core-5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-debug-5.14.0-284.73.1.rt14.358.el9_2 +9
- Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) kernel-rt-5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-core-5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-debug-5.14.0-284.73.1.rt14.358.el9_2 +11
- RHSA-2024:4533 Released 2024-07-15 · Red Hat rating Importantkernel security update
- Red Hat CodeReady Linux Builder EUS (v.9.2) kernel-tools-libs-devel-5.14.0-284.73.1.el9_2
- Red Hat Enterprise Linux AppStream EUS (v.9.2) kernel-64k-debug-devel-5.14.0-284.73.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.73.1.el9_2, kernel-64k-devel-5.14.0-284.73.1.el9_2 +9
- Red Hat Enterprise Linux BaseOS EUS (v.9.2) bpftool-7.0.0-284.73.1.el9_2, kernel-5.14.0-284.73.1.el9_2, kernel-64k-5.14.0-284.73.1.el9_2 +29
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat CodeReady Linux Builder EUS (v.9.2) | Fixed | RHSA-2024:4533 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:4583 |
| Red Hat Enterprise Linux AppStream E4S (v.9.0) | Fixed | RHSA-2026:0576 |
| Red Hat Enterprise Linux AppStream EUS (v.9.2) | Fixed | RHSA-2024:4533 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:4583 |
| Red Hat Enterprise Linux BaseOS E4S (v.9.0) | Fixed | RHSA-2026:0576 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.2) | Fixed | RHSA-2024:4533 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:4583 |
| Red Hat Enterprise Linux NFV (v. 9) | Fixed | RHSA-2024:4583 |
| Red Hat Enterprise Linux NFV E4S (v.9.0) | Fixed | RHSA-2026:0537 |
| Red Hat Enterprise Linux RT (v. 9) | Fixed | RHSA-2024:4583 |
| Red Hat Enterprise Linux Real Time E4S (v.9.0) | Fixed | RHSA-2026:0537 |
| Red Hat Enterprise Linux Real Time EUS (v.9.2) | Fixed | RHSA-2024:4554 |
| Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) | Fixed | RHSA-2024:4554 |
Not affected: 2 products
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux AppStream EUS (v.9.2)
Timeline
- 2026-10-02 Threatist record created from CVE-2023-52638
- 2026-10-03 Alias added: GHSA-2595-73wg-wgrp
- 2026-11-05 Affected versions changed · Red Hat
References
Patch 5
- https://git.kernel.org/stable/c/03358aba991668d3bb2c65b3c82aa32c36851170
- https://git.kernel.org/stable/c/aedda066d717a0b4335d7e0a00b2e3a61e40afcf
- https://git.kernel.org/stable/c/26dfe112ec2e95fe0099681f6aec33da13c2dd8e
- https://git.kernel.org/stable/c/559b6322f9480bff68cfa98d108991e945a4f284
- https://git.kernel.org/stable/c/6cdedc18ba7b9dacc36466e27e3267d201948c8d
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-2023-52638 · CVE Program
- CVE-2023-52638 · NVD
- FIRST EPSS
- GHSA-2595-73wg-wgrp · GitHub Advisory Database · CC BY 4.0
- CVE-2023-52638 · 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