# CVE-2024-38627: stm class: Fix a double free in stm_register_device()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-06-21T10:18:18.912Z
- Modified: 2026-06-17T07:40:45.137Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd before 6cc30ef8eb6d8f8d6df43152264bbf8835d99931; from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd before a0450d3f38e7c6c0a7c0afd4182976ee15573695; from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd before 713fc00c571dde4af3db2dbd5d1b0eadc327817b; from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd before 7419df1acffbcc90037f6b5a2823e81389659b36; from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd before 4bfd48bb6e62512b9c392c5002c11e1e3b18d247; from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd before 370c480410f60b90ba3e96abe73ead21ec827b20; from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd before d782a2db8f7ac49c33b9ca3e835500a28667d1be; from 389b6699a2aa0b457aa69986e9ddf39f3b4030fd before 3df463865ba42b8f88a590326f4c9ea17a1ce459; b0351a51ffda593b2b1b35dd0c00a73505edb256; from 4.4.178 before 4.5; 4.7 (not affected: before 4.7; from 4.19.316 up to 4.19.*; from 5.4.278 up to 5.4.*; from 5.10.219 up to 5.10.*; from 5.15.161 up to 5.15.*; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.9.4 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 4.7 before 4.19.316; from 4.20 before 5.4.278; from 5.5 before 5.10.219; from 5.11 before 5.15.161; from 5.16 before 6.1.93; from 6.2 before 6.6.33; from 6.7 before 6.9.4

## References

- <https://git.kernel.org/stable/c/6cc30ef8eb6d8f8d6df43152264bbf8835d99931> (patch)
- <https://git.kernel.org/stable/c/a0450d3f38e7c6c0a7c0afd4182976ee15573695> (patch)
- <https://git.kernel.org/stable/c/713fc00c571dde4af3db2dbd5d1b0eadc327817b> (patch)
- <https://git.kernel.org/stable/c/7419df1acffbcc90037f6b5a2823e81389659b36> (patch)
- <https://git.kernel.org/stable/c/4bfd48bb6e62512b9c392c5002c11e1e3b18d247> (patch)
- <https://git.kernel.org/stable/c/370c480410f60b90ba3e96abe73ead21ec827b20> (patch)
- <https://git.kernel.org/stable/c/d782a2db8f7ac49c33b9ca3e835500a28667d1be> (patch)
- <https://git.kernel.org/stable/c/3df463865ba42b8f88a590326f4c9ea17a1ce459> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Sources

- CVE List: [CVE-2024-38627](https://www.cve.org/CVERecord?id=CVE-2024-38627), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-38627](https://nvd.nist.gov/vuln/detail/CVE-2024-38627), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38627 · Whole record: https://cve.day/CVE-2024-38627.json · Rebuilt by cve.day 2026-11-25T22:58:42.116Z
