soc: qcom: apr: clean up failed service registrations
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: apr: clean up failed service registrations
apr_add_device() publishes a service in svcs_idr before parsing the optional protection domain and registering the device. If device registration fails, put_device() frees the apr_device while its service remains in the IDR. A received packet can then dereference that stale entry. The property error path also leaves the service and allocation behind.
Split device_register() into device_initialize() and device_add() so every pre-registration error can safely drop the device reference. Remove the service from the IDR on all failures after publication, then drain the RX workqueue before dropping the device reference. This prevents an in-flight lookup from outliving the device.
| Product | Versions |
|---|---|
| Linux Linux | 6adba21eb434d8160da05507c564c2339f4afdda to before fc8b553d61cc5ff47875344dc9aec5b1c5234e70 Affected6adba21eb434d8160da05507c564c2339f4afdda to before 36e7f2598831be71421e4d73cb317b696ec215f4 Affected6adba21eb434d8160da05507c564c2339f4afdda to before 0995f9123d9c17019108e95d110c58f26c3b1dad Affected6adba21eb434d8160da05507c564c2339f4afdda to before 7c00f8a39f29994c2fb495c74811f465fac3d031 Affected6adba21eb434d8160da05507c564c2339f4afdda to before 5254160d7b6a72607297b66627a85e445c0c4e7a Affected6adba21eb434d8160da05507c564c2339f4afdda to before 7dc14f37ca4ee35040c67c4b0180dd7b32079caf Affected |
| Linux Linux | 4.18 Affectedbefore 4.18 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 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/fc8b553d61cc5ff47875344dc9aec5b1c5234e70
- https://git.kernel.org/stable/c/36e7f2598831be71421e4d73cb317b696ec215f4
- https://git.kernel.org/stable/c/0995f9123d9c17019108e95d110c58f26c3b1dad
- https://git.kernel.org/stable/c/7c00f8a39f29994c2fb495c74811f465fac3d031
- https://git.kernel.org/stable/c/5254160d7b6a72607297b66627a85e445c0c4e7a
- https://git.kernel.org/stable/c/7dc14f37ca4ee35040c67c4b0180dd7b32079caf
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.