CVE-2023-52872

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52872
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52872.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52872
Downstream
Related
Published
2024-05-21T15:32:06.610Z
Modified
2025-11-28T02:34:42.902329Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
tty: n_gsm: fix race condition in status line change on dead connections
Details

In the Linux kernel, the following vulnerability has been resolved:

tty: n_gsm: fix race condition in status line change on dead connections

gsmcleanupmux() 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 gsmmodemupdate() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52872.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dd37f657387853623f20c1b2482afbb9cd8ece33
Fixed
81a4dd5e6c78f5d8952fa8c9d36565db1fe01444
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c568f7086c6e771c77aad13d727c70ef70e07243
Fixed
df6cfab66ff2a44bd23ad5dd5309cb3421bb6593
Fixed
19d34b73234af542cc8a218cf398dee73cdb1890
Fixed
ce4df90333c4fe65acb8b5089fdfe9b955ce976a
Fixed
3a75b205de43365f80a33b98ec9289785da56243
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
d834aba5f30d9a6f98f4ca1eb07e501f1989331c
Last affected
692e847a8e6607909c4a3f98ab16ccee7849bd11

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.15.138
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.62
Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.5.11
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.1