CVE-2024-50058: serial: protect uart_port_dtr_rts() in uart_shutdown() too

Published Oct 21, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

serial: protect uartportdtrrts() in uartshutdown() too

Commit af224ca2df29 (serial: core: Prevent unsafe uart port access, part 3) added few uport == NULL checks. It added one to uartshutdown(), so the commit assumes, uport can be NULL in there. But right after that protection, there is an unprotected "uartportdtrrts(uport, false);" call. That is invoked only if HUPCL is set, so I assume that is the reason why we do not see lots of these reports.

Or it cannot be NULL at this point at all for some reason :P.

Until the above is investigated, stay on the safe side and move this dereference to the if too.

I got this inconsistency from Coverity under CID 1585130. Thanks.

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

4 affected componentsFixes available
Linux Linux kernel<6.6.57
Linux Linux kernel>=6.7<6.11.4
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1

Event History

Oct 21, 2024
CVE Published
via MITRE·07:39 PM
Data Sourced
via MITRE·07:39 PM
Description
Data Sourced
via Red Hat·08:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 20, 2025
Data Sourced
via Launchpad·12:44 AM
Description
May 3, 2025
Data Sourced
via Ubuntu·12:55 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-50058?

CVE-2024-50058 has been classified as a moderate severity vulnerability in the Linux kernel.

2

What versions of the Linux kernel are affected by CVE-2024-50058?

CVE-2024-50058 affects Linux kernel versions earlier than 6.6.57 and those between 6.7 and 6.11.4.

3

How do I fix CVE-2024-50058?

To mitigate CVE-2024-50058, upgrade to Linux kernel versions 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.15-1, or use the exact remedy version as specified in the affected distribution.

4

Is CVE-2024-50058 related to unsafe uart port access?

Yes, CVE-2024-50058 addresses issues related to unsafe access to uart ports in the kernel.

5

What commit resolved CVE-2024-50058?

The vulnerability was resolved by commit af224ca2df29, which added checks to prevent unsafe uart port access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203