CVE-2023-52872

Medium

In the Linux kernel, the following vulnerability has been resolved: tty: n_gsm: fix race condition in status line change on dead connections gsm_cleanup_mux() cleans up the gsm by closing all DLCIs, stopping all timers, removing the virtual tty devices and clearing the data queues. This procedure, however, may cause subsequent changes of the virtual modem status lines of a DLCI. More data is being added the outgoing data queue and the deleted kick timer is restarted to handle this. At this point many resources have already been removed by the cleanup procedure. Thus, a kernel panic occurs. Fix this by proving in gsm_modem_update() that the cleanup procedure has not been started and the mux is still alive. Note that writing to a virtual tty is already protected by checks against the DLCI specific connection state.

Package Linux Kernel
Published 2024-05-21
Last modified 2025-04-02
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

5.5

out of 10
Medium
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness type

CWE-362

CVE-2023-52872 is a Race Condition vulnerability

What is Race Condition?

The product contains a code sequence that can run concurrently with other code, creating unexpected states. Learn more on MITRE CWE

Affected versions

Linux kernel versions 5.15.61, 5.18.18, 5.19.2, 6.0 and later are affected. Fixed in 5.15.138, 6.1.62, 6.5.11, 6.6.1, 6.7 and their respective stable series.

Affected from
≥ 5.15.61 ≥ 5.18.18 ≥ 5.19.2 ≥ 6.0
Fixed in
✓ 5.15.138 5.15.x ✓ 6.1.62 6.1.x ✓ 6.5.11 6.5.x ✓ 6.6.1 6.6.x ✓ 6.7

Frequently asked questions

  • What is CVE-2023-52872?

    CVE-2023-52872 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as a Race Condition flaw (CWE-362) . It affects Linux kernel versions from 5.15.61 onward and has been patched in 5.15.138, 6.1.62, 6.5.11 and others. CVE-2023-52872 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2023-52872?

    CVE-2023-52872 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H .

  • Is there a patch available for CVE-2023-52872?

    Yes. CVE-2023-52872 has been patched. Fixed versions include 5.15.138, 6.1.62, 6.5.11 and others. If you are running Linux kernel 5.15.61 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2023-52872 actively exploited?

    No. CVE-2023-52872 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.