CVE-2023-52872CWE-362

CVE-2023-52872

High · published May 21, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
7.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00180 · 7.2th percentile
Weakness
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Published
2024-05-21T20:15Z
Affected products (5)
ProductVersionsFixed in
linux/linux_kernel≥ 5.15.61, < 5.15.1385.15.138
linux/linux_kernel≥ 5.18.18, < 5.195.19
linux/linux_kernel≥ 5.19.2, < 6.1.626.1.62
linux/linux_kernel≥ 6.2, < 6.5.116.5.11
linux/linux_kernel≥ 6.6, < 6.6.16.6.1
References (10)
EPSS history
Timeline
  • 21 MAY 15:32Z
    tty: n_gsm: fix race condition in status line change on dead connections
    cvelistv5