# CVE-2024-38627: stm class: Fix a double free in stm\_register\_device()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 19, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-06-21T10:18:18.912Z
- **Modified:** 2026-06-17T07:40:45.137Z

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

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

- 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)

## Mitigation

- Upgrade Linux to 4.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-38627>

HTML: <https://flawdb.com/CVE-2024-38627> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-38627>
