tpm: tpm_nsc: stop using the cleanup callback as dev.release
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
tpm: tpm_nsc: stop using the cleanup callback as dev.release
tpm_nsc_remove() is called explicitly from cleanup_nsc() and also runs as the platform device release callback on the final platform_device_put(), so the cleanup executes twice on module exit; the second invocation operates on a chip that has already been freed by the devm cleanup, and the I/O region is released twice.
Overwriting the release callback installed by platform_device_alloc() also keeps platform_device_release() from running, leaking the platform object allocation.
Leave the default release callback in place; the explicit call in cleanup_nsc() remains the single cleanup point.
| Product | Versions |
|---|---|
| Linux Linux | 570302a31149083b0ac8b2f08c195e9211c2c0c6 to before 6ae5aa53dec1ec37733174257ee5dd7af38cdd19 Affected570302a31149083b0ac8b2f08c195e9211c2c0c6 to before 2ae4858a549dbde68b776259f03aed44eb943f50 Affected570302a31149083b0ac8b2f08c195e9211c2c0c6 to before a716a4f7f7929b0da4be532fdf7d96d58a2ce496 Affected570302a31149083b0ac8b2f08c195e9211c2c0c6 to before 023113932477a4ad1bcd2f014246d90471966fdf Affected570302a31149083b0ac8b2f08c195e9211c2c0c6 to before 9729fafb8354dea035b8a412800885e754294dba Affected570302a31149083b0ac8b2f08c195e9211c2c0c6 to before 160acc23dea8d3b5acae35e1effb32788a9aebd1 Affected570302a31149083b0ac8b2f08c195e9211c2c0c6 to before d94fa66c1b9f0885abe3557f323ee7e2aa6695c8 Affected570302a31149083b0ac8b2f08c195e9211c2c0c6 to before df0ef271087623439a1e900f323ed2a57204706d Affected |
| Linux Linux | 2.6.15 Affectedbefore 2.6.15 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/6ae5aa53dec1ec37733174257ee5dd7af38cdd19
- https://git.kernel.org/stable/c/2ae4858a549dbde68b776259f03aed44eb943f50
- https://git.kernel.org/stable/c/a716a4f7f7929b0da4be532fdf7d96d58a2ce496
- https://git.kernel.org/stable/c/023113932477a4ad1bcd2f014246d90471966fdf
- https://git.kernel.org/stable/c/9729fafb8354dea035b8a412800885e754294dba
- https://git.kernel.org/stable/c/160acc23dea8d3b5acae35e1effb32788a9aebd1
- https://git.kernel.org/stable/c/d94fa66c1b9f0885abe3557f323ee7e2aa6695c8
- https://git.kernel.org/stable/c/df0ef271087623439a1e900f323ed2a57204706d
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.