{"id":"CVE-2023-52872","aliases":["CVE-2023-52872"],"related":[],"kind":"vulnerability","state":"published","title":"tty: n_gsm: fix race condition in status line change on dead connections","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: n_gsm: fix race condition in status line change on dead connections\n\ngsm_cleanup_mux() cleans up the gsm by closing all DLCIs, stopping all\ntimers, removing the virtual tty devices and clearing the data queues.\nThis procedure, however, may cause subsequent changes of the virtual modem\nstatus lines of a DLCI. More data is being added the outgoing data queue\nand the deleted kick timer is restarted to handle this. At this point many\nresources have already been removed by the cleanup procedure. Thus, a\nkernel panic occurs.\n\nFix this by proving in gsm_modem_update() that the cleanup procedure has\nnot been started and the mux is still alive.\n\nNote that writing to a virtual tty is already protected by checks against\nthe DLCI specific connection state.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: n_gsm: fix race condition in status line change on dead connections\n\ngsm_cleanup_mux() cleans up the gsm by closing all DLCIs, stopping all\ntimers, removing the virtual tty devices and clearing the data queues.\nThis procedure, however, may cause subsequent changes of the virtual modem\nstatus lines of a DLCI. More data is being added the outgoing data queue\nand the deleted kick timer is restarted to handle this. At this point many\nresources have already been removed by the cleanup procedure. Thus, a\nkernel panic occurs.\n\nFix this by proving in gsm_modem_update() that the cleanup procedure has\nnot been started and the mux is still alive.\n\nNote that writing to a virtual tty is already protected by checks against\nthe DLCI specific connection state.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tty: n_gsm: corrige la condición de ejecución en la línea de estado, cambia en conexiones inactivas gsm_cleanup_mux() limpia el gsm cerrando todos los DLCI, deteniendo todos los temporizadores, eliminando los dispositivos tty virtuales y limpiando el colas de datos. Sin embargo, este procedimiento puede provocar cambios posteriores en las líneas de estado del módem virtual de un DLCI. Se agregan más datos a la cola de datos salientes y el temporizador de eliminación eliminado se reinicia para manejar esto. En este punto, el procedimiento de limpieza ya ha eliminado muchos recursos. Por tanto, se produce un pánico en el núcleo. Solucione este problema demostrando en gsm_modem_update() que el procedimiento de limpieza no se ha iniciado y que el mux sigue activo. Tenga en cuenta que la escritura en un tty virtual ya está protegida mediante comprobaciones del estado de conexión específico de DLCI.","source":"nvd"}],"published":"2024-05-21T15:32:06.610Z","modified":"2026-08-05T09:11:46.257Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"dd37f657387853623f20c1b2482afbb9cd8ece33","fixed":"81a4dd5e6c78f5d8952fa8c9d36565db1fe01444","status":"affected"},{"type":"git","introduced":"c568f7086c6e771c77aad13d727c70ef70e07243","fixed":"df6cfab66ff2a44bd23ad5dd5309cb3421bb6593","status":"affected"},{"type":"git","introduced":"c568f7086c6e771c77aad13d727c70ef70e07243","fixed":"19d34b73234af542cc8a218cf398dee73cdb1890","status":"affected"},{"type":"git","introduced":"c568f7086c6e771c77aad13d727c70ef70e07243","fixed":"ce4df90333c4fe65acb8b5089fdfe9b955ce976a","status":"affected"},{"type":"git","introduced":"c568f7086c6e771c77aad13d727c70ef70e07243","fixed":"3a75b205de43365f80a33b98ec9289785da56243","status":"affected"},{"type":"git","version":"d834aba5f30d9a6f98f4ca1eb07e501f1989331c","status":"affected"},{"type":"git","version":"692e847a8e6607909c4a3f98ab16ccee7849bd11","status":"affected"},{"type":"semver","introduced":"5.15.61","fixed":"5.15.138","status":"affected"},{"type":"semver","introduced":"5.18.18","fixed":"5.19","status":"affected"},{"type":"semver","introduced":"5.19.2","fixed":"5.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"5.15.138","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.62","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.11","lastAffected":"6.5.*","status":"unaffected"},{"type":"semver","introduced":"6.6.1","lastAffected":"6.6.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.7","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.61","fixed":"5.15.138"},{"status":"affected","introduced":"5.18.18","fixed":"5.19"},{"status":"affected","introduced":"5.19.2","fixed":"6.1.62"},{"status":"affected","introduced":"6.2","fixed":"6.5.11"},{"status":"affected","introduced":"6.6","fixed":"6.6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/81a4dd5e6c78f5d8952fa8c9d36565db1fe01444","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df6cfab66ff2a44bd23ad5dd5309cb3421bb6593","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19d34b73234af542cc8a218cf398dee73cdb1890","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ce4df90333c4fe65acb8b5089fdfe9b955ce976a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a75b205de43365f80a33b98ec9289785da56243","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-29T18:43:05.660Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52872","url":"https://www.cve.org/CVERecord?id=CVE-2023-52872","licence":"CVE Terms of Use","modified":"2026-08-05T09:11:46.257Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52872","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52872","licence":"Public domain","modified":"2026-08-04T10:18:46.877Z"}],"updatedAt":"2026-11-25T22:58:34.065Z","epss":{"score":0.0018,"percentile":0.07947,"date":"2026-12-01T12:00:22.000Z"}}