CVE-2024-50058CWE-476

CVE-2024-50058

Medium · published October 22, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
14.9
In the wild
Unconfirmed
What it is

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

serial: protect uart_port_dtr_rts() in uart_shutdown() too

Commit af224ca2df29 (serial: core: Prevent unsafe uart port access, part

3) added few uport == NULL checks. It added one to uart_shutdown(), so

the commit assumes, uport can be NULL in there. But right after that

protection, there is an unprotected "uart_port_dtr_rts(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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00245 · 14.9th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2024-10-22T00:15Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel< 6.6.576.6.57
linux/linux_kernel≥ 6.7, < 6.11.46.11.4
References (9)
EPSS history
Timeline
  • 21 OCT 19:39Z
    serial: protect uart_port_dtr_rts() in uart_shutdown() too
    cvelistv5