CVE-2024-38633

CVSS v3.1 5.5 (Medium)
55% Progress
EPSS 0.04 % (5th)
0.04% Progress
Affected Products 1
Advisories 24
NVD Status Analyzed

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

serial: max3100: Update uart_driver_registered on driver removal

The removal of the last MAX3100 device triggers the removal of
the driver. However, code doesn't update the respective global
variable and after insmod — rmmod — insmod cycle the kernel
oopses:

max3100 spi-PRP0001:01: max3100_probe: adding port 0
BUG: kernel NULL pointer dereference, address: 0000000000000408
...
RIP: 0010:serial_core_register_port+0xa0/0x840
...
max3100_probe+0x1b6/0x280 [max3100]
spi_probe+0x8d/0xb0

Update the actual state so next time UART driver will be registered
again.

Hugo also noticed, that the error path in the probe also affected
by having the variable set, and not cleared. Instead of clearing it
move the assignment after the successfull uart_register_driver() call.

Weaknesses
CWE-476
NULL Pointer Dereference
CVE Status
PUBLISHED
NVD Status
Analyzed
CNA
kernel.org
Published Date
2024-06-21 11:15:12
(2 months ago)
Updated Date
2024-09-09 13:53:54
(7 days ago)

Affected Products

Loading...
Loading...

Configuration #1

    CPE23 From Up To
  Linux Kernel from 2.6.30 version and prior 4.19.316 version cpe:2.3:o:linux:linux_kernel >= 2.6.30 < 4.19.316
  Linux Kernel from 4.20 version and prior 5.4.278 version cpe:2.3:o:linux:linux_kernel >= 4.20 < 5.4.278
  Linux Kernel from 5.5 version and prior 5.10.219 version cpe:2.3:o:linux:linux_kernel >= 5.5 < 5.10.219
  Linux Kernel from 5.11 version and prior 5.15.161 version cpe:2.3:o:linux:linux_kernel >= 5.11 < 5.15.161
  Linux Kernel from 5.16 version and prior 6.1.93 version cpe:2.3:o:linux:linux_kernel >= 5.16 < 6.1.93
  Linux Kernel from 6.2 version and prior 6.6.33 version cpe:2.3:o:linux:linux_kernel >= 6.2 < 6.6.33
  Linux Kernel from 6.7 version and prior 6.9.4 version cpe:2.3:o:linux:linux_kernel >= 6.7 < 6.9.4
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...