{"id":"CVE-2024-50058","aliases":["CVE-2024-50058"],"related":[],"kind":"vulnerability","state":"published","title":"serial: protect uart_port_dtr_rts() in uart_shutdown() too","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: protect uart_port_dtr_rts() in uart_shutdown() too\n\nCommit af224ca2df29 (serial: core: Prevent unsafe uart port access, part\n3) added few uport == NULL checks. It added one to uart_shutdown(), so\nthe commit assumes, uport can be NULL in there. But right after that\nprotection, there is an unprotected \"uart_port_dtr_rts(uport, false);\"\ncall. That is invoked only if HUPCL is set, so I assume that is the\nreason why we do not see lots of these reports.\n\nOr it cannot be NULL at this point at all for some reason :P.\n\nUntil the above is investigated, stay on the safe side and move this\ndereference to the if too.\n\nI got this inconsistency from Coverity under CID 1585130. Thanks.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: protect uart_port_dtr_rts() in uart_shutdown() too\n\nCommit af224ca2df29 (serial: core: Prevent unsafe uart port access, part\n3) added few uport == NULL checks. It added one to uart_shutdown(), so\nthe commit assumes, uport can be NULL in there. But right after that\nprotection, there is an unprotected \"uart_port_dtr_rts(uport, false);\"\ncall. That is invoked only if HUPCL is set, so I assume that is the\nreason why we do not see lots of these reports.\n\nOr it cannot be NULL at this point at all for some reason :P.\n\nUntil the above is investigated, stay on the safe side and move this\ndereference to the if too.\n\nI got this inconsistency from Coverity under CID 1585130. Thanks.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: serial: proteger uart_port_dtr_rts() en uart_shutdown() también El commit af224ca2df29 (serial: core: Prevenir el acceso inseguro al puerto uart, parte 3) agregó algunas comprobaciones uport == NULL. Agregó una a uart_shutdown(), por lo que el commit asume que uport puede ser NULL allí. Pero justo después de esa protección, hay una llamada \"uart_port_dtr_rts(uport, false);\" sin protección. Eso se invoca solo si HUPCL está configurado, por lo que supongo que esa es la razón por la que no vemos muchos de estos informes. O no puede ser NULL en este punto en absoluto por alguna razón :P. Hasta que se investigue lo anterior, manténgase del lado seguro y mueva esta desreferencia al if también. Obtuve esta inconsistencia de Coverity bajo CID 1585130. Gracias.","source":"nvd"}],"published":"2024-10-21T19:39:48.420Z","modified":"2026-10-15T01:19:06.690Z","severity":{"scorer":"NVD","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"},"severities":[{"scorer":"NVD","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-476"],"affected":[{"ranges":[{"type":"git","introduced":"af224ca2df297440448b9d407d21b50982c6d532","fixed":"2fe399bb8efd0d325ab1138cf8e3ecf23a39e96d","status":"affected"},{"type":"git","introduced":"af224ca2df297440448b9d407d21b50982c6d532","fixed":"399927f0f875b93f3d5a0336d382ba48b8671eb2","status":"affected"},{"type":"git","introduced":"af224ca2df297440448b9d407d21b50982c6d532","fixed":"d7b5876a6e74cdf8468a478be6b23f2f5464ac7a","status":"affected"},{"type":"git","introduced":"af224ca2df297440448b9d407d21b50982c6d532","fixed":"e418d91195d29d5f9c9685ff309b92b04b41dc40","status":"affected"},{"type":"git","introduced":"af224ca2df297440448b9d407d21b50982c6d532","fixed":"76ed24a34223bb2c6b6162e1d8389ec4e602a290","status":"affected"},{"type":"git","introduced":"af224ca2df297440448b9d407d21b50982c6d532","fixed":"602babaa84d627923713acaf5f7e9a4369e77473","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.7","status":"unaffected"},{"type":"semver","introduced":"5.10.229","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.170","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.115","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.57","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.4","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","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","fixed":"6.6.57"},{"status":"affected","introduced":"6.7","fixed":"6.11.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2fe399bb8efd0d325ab1138cf8e3ecf23a39e96d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/399927f0f875b93f3d5a0336d382ba48b8671eb2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7b5876a6e74cdf8468a478be6b23f2f5464ac7a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e418d91195d29d5f9c9685ff309b92b04b41dc40","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76ed24a34223bb2c6b6162e1d8389ec4e602a290","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/602babaa84d627923713acaf5f7e9a4369e77473","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:23:14.442Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50058","url":"https://www.cve.org/CVERecord?id=CVE-2024-50058","licence":"CVE Terms of Use","modified":"2026-10-15T00:56:57.845Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50058","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50058","licence":"Public domain","modified":"2026-10-15T01:19:06.690Z"}],"updatedAt":"2026-11-25T22:58:47.120Z","epss":{"score":0.00247,"percentile":0.17167,"date":"2026-12-01T12:00:22.000Z"}}