{"id":"CVE-2024-50058","revision":"1b492ecd536a49edbd599d0c44a9a00a","records":[{"revision":"1b492ecd536a49edbd599d0c44a9a00a","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-50058","aliases":[],"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(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.","state":0,"publishedAt":"2024-10-21T19:39:48.42+00:00","modifiedAt":"2026-10-15T00:56:57.845+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/tty/serial/serial_core.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"af224ca2df297440448b9d407d21b50982c6d532\",\n                            \"lessThan\": \"2fe399bb8efd0d325ab1138cf8e3ecf23a39e96d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"af224ca2df297440448b9d407d21b50982c6d532\",\n                            \"lessThan\": \"399927f0f875b93f3d5a0336d382ba48b8671eb2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"af224ca2df297440448b9d407d21b50982c6d532\",\n                            \"lessThan\": \"d7b5876a6e74cdf8468a478be6b23f2f5464ac7a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"af224ca2df297440448b9d407d21b50982c6d532\",\n                            \"lessThan\": \"e418d91195d29d5f9c9685ff309b92b04b41dc40\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"af224ca2df297440448b9d407d21b50982c6d532\",\n                            \"lessThan\": \"76ed24a34223bb2c6b6162e1d8389ec4e602a290\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"af224ca2df297440448b9d407d21b50982c6d532\",\n                            \"lessThan\": \"602babaa84d627923713acaf5f7e9a4369e77473\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/tty/serial/serial_core.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"4.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"4.7\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.229\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.170\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.115\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.57\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.11.4\",\n                            \"lessThanOrEqual\": \"6.11.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/2fe399bb8efd0d325ab1138cf8e3ecf23a39e96d","https://git.kernel.org/stable/c/399927f0f875b93f3d5a0336d382ba48b8671eb2","https://git.kernel.org/stable/c/d7b5876a6e74cdf8468a478be6b23f2f5464ac7a","https://git.kernel.org/stable/c/e418d91195d29d5f9c9685ff309b92b04b41dc40","https://git.kernel.org/stable/c/76ed24a34223bb2c6b6162e1d8389ec4e602a290","https://git.kernel.org/stable/c/602babaa84d627923713acaf5f7e9a4369e77473"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-50058","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-50058","identifiers":["CVE-2024-50058"]},"retained":false,"historicalAffected":[]}],"coverage":[]}