{"id":"CVE-2026-52979","state":"PUBLISHED","title":"net: psp: check for device unregister when creating assoc","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: psp: check for device unregister when creating assoc\n\npsp_assoc_device_get_locked() obtains a psp_dev reference via\npsp_dev_get_for_sock() (which uses psp_dev_tryget() under RCU);\nit then acquires psd->lock and drops the reference. Before\nthe lock is taken, psp_dev_unregister() can run to completion:\ntake psd->lock, clear out state, unlock, drop the registration\nreference.\n\nThe expectation is that the lock prevents device unregistration,\nbut much like with netdevs special care has to be taken when\n\"upgrading\" a reference to a locked device. Add the missing\ncheck if device is still alive. psp_dev_is_registered() exists\nalready but had no callers, which makes me wonder if I either\nforgot to add this or lost the check during refactoring...","publishedAt":"2026-06-24T16:28:55.696Z","updatedAt":"2026-06-24T16:28:55.696Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b46ca260e2290e3453d1355ab5b6d283d73d780","status":"affected","lessThan":"d90df5ce6deb2424de3ad89bcc693ac1b67accc9","versionType":"git"},{"version":"6b46ca260e2290e3453d1355ab5b6d283d73d780","status":"affected","lessThan":"e201c57073e624dd2ba5beaf9eda31e19b77b332","versionType":"git"},{"version":"6b46ca260e2290e3453d1355ab5b6d283d73d780","status":"affected","lessThan":"b89769f936a8fa9e66de72ddc1b71a9745a488e6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/psp/psp_nl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.33","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.10","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/psp/psp_nl.c"]}],"references":["https://git.kernel.org/stable/c/d90df5ce6deb2424de3ad89bcc693ac1b67accc9","https://git.kernel.org/stable/c/e201c57073e624dd2ba5beaf9eda31e19b77b332","https://git.kernel.org/stable/c/b89769f936a8fa9e66de72ddc1b71a9745a488e6"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/52xxx/CVE-2026-52979.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-52979","state":"PUBLISHED","datePublished":"2026-06-24T16:28:55.696Z","dateUpdated":"2026-06-24T16:28:55.696Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-06-09T07:44:35.376Z"},"containers":{"cna":{"title":"net: psp: check for device unregister when creating assoc","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: psp: check for device unregister when creating assoc\n\npsp_assoc_device_get_locked() obtains a psp_dev reference via\npsp_dev_get_for_sock() (which uses psp_dev_tryget() under RCU);\nit then acquires psd->lock and drops the reference. Before\nthe lock is taken, psp_dev_unregister() can run to completion:\ntake psd->lock, clear out state, unlock, drop the registration\nreference.\n\nThe expectation is that the lock prevents device unregistration,\nbut much like with netdevs special care has to be taken when\n\"upgrading\" a reference to a locked device. Add the missing\ncheck if device is still alive. psp_dev_is_registered() exists\nalready but had no callers, which makes me wonder if I either\nforgot to add this or lost the check during refactoring..."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b46ca260e2290e3453d1355ab5b6d283d73d780","status":"affected","lessThan":"d90df5ce6deb2424de3ad89bcc693ac1b67accc9","versionType":"git"},{"version":"6b46ca260e2290e3453d1355ab5b6d283d73d780","status":"affected","lessThan":"e201c57073e624dd2ba5beaf9eda31e19b77b332","versionType":"git"},{"version":"6b46ca260e2290e3453d1355ab5b6d283d73d780","status":"affected","lessThan":"b89769f936a8fa9e66de72ddc1b71a9745a488e6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/psp/psp_nl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.33","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.10","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/psp/psp_nl.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d90df5ce6deb2424de3ad89bcc693ac1b67accc9"},{"url":"https://git.kernel.org/stable/c/e201c57073e624dd2ba5beaf9eda31e19b77b332"},{"url":"https://git.kernel.org/stable/c/b89769f936a8fa9e66de72ddc1b71a9745a488e6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-24T16:28:55.696Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.0.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}