CVE-2024-38627
stm class: Fix a double free in stm_register_device()
Mitigation
- Upgrade Linux to 4.5 or later.
Who should check
- Anyone running Linux >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 6cc30ef8eb6d8f8d6df43152264bbf8835d99931; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < a0450d3f38e7c6c0a7c0afd4182976ee15573695; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 713fc00c571dde4af3db2dbd5d1b0eadc327817b; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 7419df1acffbcc90037f6b5a2823e81389659b36; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 4bfd48bb6e62512b9c392c5002c11e1e3b18d247; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 370c480410f60b90ba3e96abe73ead21ec827b20; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < d782a2db8f7ac49c33b9ca3e835500a28667d1be; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 3df463865ba42b8f88a590326f4c9ea17a1ce459; b0351a51ffda593b2b1b35dd0c00a73505edb256; >= 4.4.178, < 4.5
- Anyone running Linux 4.7
Vulnerability facts
- Affected
- Linux >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 6cc30ef8eb6d8f8d6df43152264bbf8835d99931; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < a0450d3f38e7c6c0a7c0afd4182976ee15573695; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 713fc00c571dde4af3db2dbd5d1b0eadc327817b; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 7419df1acffbcc90037f6b5a2823e81389659b36; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 4bfd48bb6e62512b9c392c5002c11e1e3b18d247; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 370c480410f60b90ba3e96abe73ead21ec827b20; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < d782a2db8f7ac49c33b9ca3e835500a28667d1be; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 3df463865ba42b8f88a590326f4c9ea17a1ce459; b0351a51ffda593b2b1b35dd0c00a73505edb256; >= 4.4.178, < 4.5; Linux 4.7
- Fixed in
- Linux 6cc30ef8eb6d8f8d6df43152264bbf8835d99931, Linux 713fc00c571dde4af3db2dbd5d1b0eadc327817b, Linux 7419df1acffbcc90037f6b5a2823e81389659b36, Linux 4bfd48bb6e62512b9c392c5002c11e1e3b18d247, Linux 370c480410f60b90ba3e96abe73ead21ec827b20, Linux 3df463865ba42b8f88a590326f4c9ea17a1ce459, Linux 4.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 19, 2026-11-26)
- CWE
- CWE-415
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 6cc30ef8eb6d8f8d6df43152264bbf8835d99931; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < a0450d3f38e7c6c0a7c0afd4182976ee15573695; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 713fc00c571dde4af3db2dbd5d1b0eadc327817b; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 7419df1acffbcc90037f6b5a2823e81389659b36; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 4bfd48bb6e62512b9c392c5002c11e1e3b18d247; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 370c480410f60b90ba3e96abe73ead21ec827b20; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < d782a2db8f7ac49c33b9ca3e835500a28667d1be; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 3df463865ba42b8f88a590326f4c9ea17a1ce459; b0351a51ffda593b2b1b35dd0c00a73505edb256; >= 4.4.178, < 4.5 | — | cvelist |
| Linux | 4.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-38627. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-38627.md Affected: Linux >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 6cc30ef8eb6d8f8d6df43152264bbf8835d99931; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < a0450d3f38e7c6c0a7c0afd4182976ee15573695; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 713fc00c571dde4af3db2dbd5d1b0eadc327817b; >= 389b6699a2aa0b457aa6998… Fixed in: Linux 6cc30ef8eb6d8f8d6df43152264bbf8835d99931, Linux 713fc00c571dde4af3db2dbd5d1b0eadc327817b, Linux 7419df1acffbcc90037f6b5a2823e81389659b36, Linux 4bfd48bb6e62512b9c392c5002c11e1e3b18d247, Linux 370c480410f60b90ba3e96abe73ead21ec827b20, Linux 3df463865ba42b8f88a590326f4c9ea17a1ce459, Linux 4.5 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/6cc30ef8eb6d8f8d6df43152264bbf8835d99931
- https://git.kernel.org/stable/c/a0450d3f38e7c6c0a7c0afd4182976ee15573695
- https://git.kernel.org/stable/c/713fc00c571dde4af3db2dbd5d1b0eadc327817b
- https://git.kernel.org/stable/c/7419df1acffbcc90037f6b5a2823e81389659b36
- https://git.kernel.org/stable/c/4bfd48bb6e62512b9c392c5002c11e1e3b18d247
- https://git.kernel.org/stable/c/370c480410f60b90ba3e96abe73ead21ec827b20
- https://git.kernel.org/stable/c/d782a2db8f7ac49c33b9ca3e835500a28667d1be
- https://git.kernel.org/stable/c/3df463865ba42b8f88a590326f4c9ea17a1ce459
FAQ
Is CVE-2024-38627 being exploited?
There is no confirmed exploitation: CVE-2024-38627 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-38627?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-38627?
Linux >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 6cc30ef8eb6d8f8d6df43152264bbf8835d99931; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < a0450d3f38e7c6c0a7c0afd4182976ee15573695; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 713fc00c571dde4af3db2dbd5d1b0eadc327817b; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 7419df1acffbcc90037f6b5a2823e81389659b36; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 4bfd48bb6e62512b9c392c5002c11e1e3b18d247; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 370c480410f60b90ba3e96abe73ead21ec827b20; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < d782a2db8f7ac49c33b9ca3e835500a28667d1be; >= 389b6699a2aa0b457aa69986e9ddf39f3b4030fd, < 3df463865ba42b8f88a590326f4c9ea17a1ce459; b0351a51ffda593b2b1b35dd0c00a73505edb256; >= 4.4.178, < 4.5; Linux 4.7.
Is there a fix for CVE-2024-38627?
Yes. Fixed in Linux 6cc30ef8eb6d8f8d6df43152264bbf8835d99931, Linux 713fc00c571dde4af3db2dbd5d1b0eadc327817b, Linux 7419df1acffbcc90037f6b5a2823e81389659b36, Linux 4bfd48bb6e62512b9c392c5002c11e1e3b18d247, Linux 370c480410f60b90ba3e96abe73ead21ec827b20, Linux 3df463865ba42b8f88a590326f4c9ea17a1ce459, Linux 4.5. Upgrade Linux to 4.5 or later.
How do I check if I'm affected by CVE-2024-38627?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.