{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-50058","id":"CVE-2024-50058","title":"serial: protect uart_port_dtr_rts() in uart_shutdown() too","description":"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(upo","descriptionLong":"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.","published":"2024-10-21T19:39:48.420Z","updated":"2026-10-28T02:30:54.818312466Z","reserved":"2024-10-21T19:36:19.938Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"af224ca2df297440448b9d407d21b50982c6d532","lessThan":"2fe399bb8efd0d325ab1138cf8e3ecf23a39e96d","status":"affected","versionType":"git"},{"version":"af224ca2df297440448b9d407d21b50982c6d532","lessThan":"399927f0f875b93f3d5a0336d382ba48b8671eb2","status":"affected","versionType":"git"},{"version":"af224ca2df297440448b9d407d21b50982c6d532","lessThan":"d7b5876a6e74cdf8468a478be6b23f2f5464ac7a","status":"affected","versionType":"git"},{"version":"af224ca2df297440448b9d407d21b50982c6d532","lessThan":"e418d91195d29d5f9c9685ff309b92b04b41dc40","status":"affected","versionType":"git"},{"version":"af224ca2df297440448b9d407d21b50982c6d532","lessThan":"76ed24a34223bb2c6b6162e1d8389ec4e602a290","status":"affected","versionType":"git"},{"version":"af224ca2df297440448b9d407d21b50982c6d532","lessThan":"602babaa84d627923713acaf5f7e9a4369e77473","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.7","status":"affected"},{"version":"0","lessThan":"4.7","status":"unaffected","versionType":"semver"},{"version":"5.10.229","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.170","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.115","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.57","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.11.4","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/2fe399bb8efd0d325ab1138cf8e3ecf23a39e96d","tags":["web"]},{"url":"https://git.kernel.org/stable/c/399927f0f875b93f3d5a0336d382ba48b8671eb2","tags":["web"]},{"url":"https://git.kernel.org/stable/c/d7b5876a6e74cdf8468a478be6b23f2f5464ac7a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/e418d91195d29d5f9c9685ff309b92b04b41dc40","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/76ed24a34223bb2c6b6162e1d8389ec4e602a290","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/602babaa84d627923713acaf5f7e9a4369e77473","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50058.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50058","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00247,"epssPercentile":0.16237,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-50058","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50058","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-50058","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-50058","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}