cve.bz

CVE-2023-52638 linux linux kernel: Improper Locking

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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]

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-06-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-667 Improper Locking
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-52638 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-52638?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-52638?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-52638 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux5.15 and later

Fixed in

ProductRelease lineFixed in
Linux5.155.15.149
Linux6.16.1.79
Linux6.66.6.18
Linux6.76.7.6
Linuxlater releases6.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.82-1DEBIAN-CVE-2023-52638
Debian13, 14linux6.7.7-1DEBIAN-CVE-2023-52638
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-52638
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-52638
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1061.67~20.04.1UBUNTU-CVE-2023-52638 USN-6766-3
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1063.72~20.04.1UBUNTU-CVE-2023-52638 USN-6766-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1063.72~20.04.1.1USN-6766-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1059.67~20.04.1UBUNTU-CVE-2023-52638 USN-6766-1
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 25 moreno fix listedUBUNTU-CVE-2023-52638
Ubuntu20.04:LTSlinux-gkeop-5.155.15.0-1044.51~20.04.1UBUNTU-CVE-2023-52638 USN-6766-1
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-106.116~20.04.1UBUNTU-CVE-2023-52638 USN-6766-1 USN-6766-2
Ubuntu20.04:LTSlinux-ibm-5.155.15.0-1054.57~20.04.1UBUNTU-CVE-2023-52638 USN-6766-1
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1058.64~20.04.1UBUNTU-CVE-2023-52638 USN-6828-1
Ubuntu20.04:LTSlinux-nvidia-tegra-5.155.15.0-1027.27~20.04.1UBUNTU-CVE-2023-52638
35 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 26 more0:5.14.0-427.26.1.el9_4RHSA-2024:4583
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.3.0-427.26.1.el9_4RHSA-2024:4583
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.3.0-427.26.1.el9_4RHSA-2024:4583
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 43 more0:5.14.0-427.26.1.el9_4RHSA-2024:4583
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-427.26.1.el9_4RHSA-2024:4583
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-427.26.1.el9_4RHSA-2024:4583
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-427.26.1.el9_4RHSA-2024:4583
Red Hatrhel_e4s:9.0::appstreamperf, kernel-doc, kernel-devel and 16 more0:5.14.0-70.161.1.el9_0RHSA-2026:0576
Red Hatrhel_e4s:9.0::baseoskernel, bpftool, kernel-core and 25 more0:5.14.0-70.161.1.el9_0RHSA-2026:0576
Red Hatrhel_e4s:9.0::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:5.14.0-70.161.1.rt21.233.el9_0RHSA-2026:0537
Red Hatrhel_e4s:9.0::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:5.14.0-70.161.1.rt21.233.el9_0RHSA-2026:0537
Red Hatrhel_eus:9.2::appstreamperf, rtla, kernel-devel and 21 more0:5.14.0-284.73.1.el9_2RHSA-2024:4533
6 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux9bpftool7.3.0-427.26.1.el9_4ALSA-2024:4583
AlmaLinux9rv, perf, rtla and 58 more5.14.0-427.26.1.el9_4ALSA-2024:4583
Rocky Linux9kernel0:5.14.0-427.26.1.el9_4RLSA-2024:4583
Alpaquita23linux-lts6.1.81-r0BELL-CVE-2023-52638
Alpaquita25, streamlinux-lts6.12.41-r0BELL-CVE-2023-52638

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpaquita.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9kernel-0:5.14.0-427.26.1.el9_4Fixed 2024-07-17RHSA-2024:4583
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-0:5.14.0-70.161.1.el9_0Fixed 2026-01-14RHSA-2026:0576
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-rt-0:5.14.0-70.161.1.rt21.233.el9_0Fixed 2026-01-14RHSA-2026:0537
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-0:5.14.0-284.73.1.el9_2Fixed 2024-07-15RHSA-2024:4533
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-rt-0:5.14.0-284.73.1.rt14.358.el9_2Fixed 2024-07-15RHSA-2024:4554
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-52638.

Attack patterns (CAPEC)

  • CAPEC-25 Forced Deadlock Likelihood: Low · Severity: High
  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON