CVE-2024-38633

serial: max3100: Update uart_driver_registered on driver removal

No CVSS score yet EPSS 0.24%

Published 21 Jun 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-38633

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-38633 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.5% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 24 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7831d56b0a3544cbb6f82f76c34ca95e24d5b676, before 21a61a7fbcfdd3493cede43ebc7c4dfae2147a8b
affected from 7831d56b0a3544cbb6f82f76c34ca95e24d5b676, before 9db4222ed8cd3e50b81c8b910ae74c26427a4003
affected from 7831d56b0a3544cbb6f82f76c34ca95e24d5b676, before e8e2a4339decad7e59425b594a98613402652d72
affected from 7831d56b0a3544cbb6f82f76c34ca95e24d5b676, before 361a92c9038e8c8c3996f8eeaa14522a8ad90752
affected from 7831d56b0a3544cbb6f82f76c34ca95e24d5b676, before b6eb7aff23e05f362e8c9b560f6ac5e727b70e00
affected from 7831d56b0a3544cbb6f82f76c34ca95e24d5b676, before e8a10089eddba40d4b2080c9d3fc2d2b2488f762
affected from 7831d56b0a3544cbb6f82f76c34ca95e24d5b676, before fa84ca78b048dfb00df0ef446f5c35e0a98ca6a0
affected from 7831d56b0a3544cbb6f82f76c34ca95e24d5b676, before 712a1fcb38dc7cac6da63ee79a88708fbf9c45ec
Other versions: unaffected
Linux
affected 2.6.30
unaffected before 2.6.30
unaffected from 4.19.316 up to and including 4.19.*
unaffected from 5.4.278 up to and including 5.4.*
unaffected from 5.10.219 up to and including 5.10.*
unaffected from 5.15.161 up to and including 5.15.*
unaffected from 6.1.93 up to and including 6.1.*
unaffected from 6.6.33 up to and including 6.6.*
unaffected from 6.9.4 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-38633 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38633

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-38633
trivy image --scanners vuln IMAGE | grep CVE-2024-38633

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-38633 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.