CVE-2023-52872
tty: n_gsm: fix race condition in status line change on dead connections
Check your servers for CVE-2023-52872
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52872 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.95% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 29 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from dd37f657387853623f20c1b2482afbb9cd8ece33, before 81a4dd5e6c78f5d8952fa8c9d36565db1fe01444 affected from c568f7086c6e771c77aad13d727c70ef70e07243, before df6cfab66ff2a44bd23ad5dd5309cb3421bb6593 affected from c568f7086c6e771c77aad13d727c70ef70e07243, before 19d34b73234af542cc8a218cf398dee73cdb1890 affected from c568f7086c6e771c77aad13d727c70ef70e07243, before ce4df90333c4fe65acb8b5089fdfe9b955ce976a affected from c568f7086c6e771c77aad13d727c70ef70e07243, before 3a75b205de43365f80a33b98ec9289785da56243 affected d834aba5f30d9a6f98f4ca1eb07e501f1989331c affected 692e847a8e6607909c4a3f98ab16ccee7849bd11 affected from 5.15.61, before 5.15.138 affected from 5.18.18, before 5.19 affected from 5.19.2, before 5.20
Other versions: unaffected
|
| Linux |
affected 6.0 unaffected before 6.0 unaffected from 5.15.138 up to and including 5.15.* unaffected from 6.1.62 up to and including 6.1.* unaffected from 6.5.11 up to and including 6.5.* unaffected from 6.6.1 up to and including 6.6.* unaffected 6.7 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52872 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52872
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52872
trivy image --scanners vuln IMAGE | grep CVE-2023-52872
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/81a4dd5e6c78f5d8952fa8c9d36565db1fe01444 git.kernel.org
- https://git.kernel.org/stable/c/df6cfab66ff2a44bd23ad5dd5309cb3421bb6593 git.kernel.org
- https://git.kernel.org/stable/c/19d34b73234af542cc8a218cf398dee73cdb1890 git.kernel.org
- https://git.kernel.org/stable/c/ce4df90333c4fe65acb8b5089fdfe9b955ce976a git.kernel.org
- https://git.kernel.org/stable/c/3a75b205de43365f80a33b98ec9289785da56243 git.kernel.org
Source: the record CVE-2023-52872 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse