{"id":"CVE-2026-139776","summary":"soc: qcom: apr: clean up failed service registrations","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: apr: clean up failed service registrations\n\napr_add_device() publishes a service in svcs_idr before parsing the\noptional protection domain and registering the device. If device\nregistration fails, put_device() frees the apr_device while its service\nremains in the IDR. A received packet can then dereference that stale\nentry. The property error path also leaves the service and allocation\nbehind.\n\nSplit device_register() into device_initialize() and device_add() so every\npre-registration error can safely drop the device reference. Remove the\nservice from the IDR on all failures after publication, then drain the RX\nworkqueue before dropping the device reference. This prevents an in-flight\nlookup from outliving the device.","modified":"2026-11-30T15:02:30.944282037Z","published":"2026-11-30T13:37:54.061Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139776.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0995f9123d9c17019108e95d110c58f26c3b1dad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36e7f2598831be71421e4d73cb317b696ec215f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5254160d7b6a72607297b66627a85e445c0c4e7a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7c00f8a39f29994c2fb495c74811f465fac3d031"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7dc14f37ca4ee35040c67c4b0180dd7b32079caf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fc8b553d61cc5ff47875344dc9aec5b1c5234e70"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139776.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139776"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6adba21eb434d8160da05507c564c2339f4afdda"},{"fixed":"fc8b553d61cc5ff47875344dc9aec5b1c5234e70"},{"fixed":"36e7f2598831be71421e4d73cb317b696ec215f4"},{"fixed":"0995f9123d9c17019108e95d110c58f26c3b1dad"},{"fixed":"7c00f8a39f29994c2fb495c74811f465fac3d031"},{"fixed":"5254160d7b6a72607297b66627a85e445c0c4e7a"},{"fixed":"7dc14f37ca4ee35040c67c4b0180dd7b32079caf"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139776.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.18.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139776.json"}}],"schema_version":"1.9.2"}