CVE-2024-38627

stm class: Fix a double free in stm_register_device()

No CVSS score yet EPSS 0.25%

Published 21 Jun 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2024-38627

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-38627 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:

stm class: Fix a double free in stm_register_device()

The put_device(&stm->dev) call will trigger stm_device_release() which frees "stm" so the vfree(stm) on the next line is a double free.

Exploitation

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

The assessment of CISA (SSVC, 21 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 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, before 6cc30ef8eb6d8f8d6df43152264bbf8835d99931
affected from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, before a0450d3f38e7c6c0a7c0afd4182976ee15573695
affected from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, before 713fc00c571dde4af3db2dbd5d1b0eadc327817b
affected from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, before 7419df1acffbcc90037f6b5a2823e81389659b36
affected from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, before 4bfd48bb6e62512b9c392c5002c11e1e3b18d247
affected from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, before 370c480410f60b90ba3e96abe73ead21ec827b20
affected from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, before d782a2db8f7ac49c33b9ca3e835500a28667d1be
affected from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, before 3df463865ba42b8f88a590326f4c9ea17a1ce459
affected b0351a51ffda593b2b1b35dd0c00a73505edb256
affected from 4.4.178, before 4.5
Other versions: unaffected
Linux
affected 4.7
unaffected before 4.7
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-38627 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38627

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-38627
trivy image --scanners vuln IMAGE | grep CVE-2024-38627

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-38627 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.