net: psp: check for device unregister when creating assoc
In the Linux kernel, the following vulnerability has been resolved: net: psp: check for device unregister when creating assoc psp_assoc_device_get_locked() obtains a psp_dev reference via psp_dev_get_for_sock() (which uses psp_dev_tryget() under RCU); it then acquires psd->lock and drops the reference. Before the lock is taken, psp_dev_unregister() can run to completion: take psd->lock, clear out state, unlock, drop the registration reference. The expectation is that the lock prevents device unregistration, but much like with netdevs special care has to be taken when "upgrading" a reference to a locked device. Add the missing check if device is still alive. psp_dev_is_registered() exists already but had no callers, which makes me wonder if I either forgot to add this or lost the check during refactoring...
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.18.33, 7.0.10
- CVEs
- CVE-2026-52979
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 04:24 UTC · Revision 1
Source evidence
net: psp: check for device unregister when creating assoc
core-osv · Original sourcePublished 24 Jun 2026, 16:28 UTC
In the Linux kernel, the following vulnerability has been resolved: net: psp: check for device unregister when creating assoc psp_assoc_device_get_locked() obtains a psp_dev reference via psp_dev_get_for_sock() (which uses psp_dev_tryget() under RCU); it then acquires psd->lock and drops the reference. Before the lock is taken, psp_dev_unregister() can run to completion: take psd->lock, clear out state, unlock, drop the registration reference. The expectation is that the lock prevents device unregistration, but much like with netdevs special care has to be taken when "upgrading" a reference to a locked device. Add the missing check if device is still alive. psp_dev_is_registered() exists already but had no callers, which makes me wonder if I either forgot to add this or lost the check during refactoring...
osv:CVE-2026-52979
Kernel
Fixed versions: 6.18.33, 7.0.10
Complete source record
{
"id": "79a477048969b0c03895d2e73ad3105332c5c2d7760921afde91d9d6b00487fa",
"url": "https://osv.dev/vulnerability/CVE-2026-52979",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: psp: check for device unregister when creating assoc",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: psp: check for device unregister when creating assoc psp_assoc_device_get_locked() obtains a psp_dev reference via psp_dev_get_for_sock() (which uses psp_dev_tryget() under RCU); it then acquires psd->lock and drops the reference. Before the lock is taken, psp_dev_unregister() can run to completion: take psd->lock, clear out state, unlock, drop the registration reference. The expectation is that the lock prevents device unregistration, but much like with netdevs special care has to be taken when \"upgrading\" a reference to a locked device. Add the missing check if device is still alive. psp_dev_is_registered() exists already but had no callers, which makes me wonder if I either forgot to add this or lost the check during refactoring...",
"evidence": "osv:CVE-2026-52979",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.18.33",
"evidence": "/affected/1/ranges"
},
{
"value": "7.0.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-52979",
"aliases": [
"CVE-2026-52979"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6b46ca260e2290e3453d1355ab5b6d283d73d780"
},
{
"fixed": "d90df5ce6deb2424de3ad89bcc693ac1b67accc9"
},
{
"fixed": "e201c57073e624dd2ba5beaf9eda31e19b77b332"
},
{
"fixed": "b89769f936a8fa9e66de72ddc1b71a9745a488e6"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52979.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.18.0"
},
{
"fixed": "6.18.33"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.0.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52979.json"
}
}
],
"modified": "2026-10-28T02:30:33.486820098Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/b89769f936a8fa9e66de72ddc1b71a9745a488e6",
"https://git.kernel.org/stable/c/d90df5ce6deb2424de3ad89bcc693ac1b67accc9",
"https://git.kernel.org/stable/c/e201c57073e624dd2ba5beaf9eda31e19b77b332",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52979.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-52979",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52979.json"
}
},
"related_cves": [
{
"value": "CVE-2026-52979",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 500265,
"published_at": "2026-06-24T16:28:55.696+00:00"
}