CVEvulnerability

CVE-2026-52979

5.5 MEDIUM Published 2026-06-24 Modified 2026-07-14 Official page ↗
Status
Analyzed
Published
2026-06-24
Last modified
2026-07-14
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-667

Description

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...

Affected configurations

• linux linux kernel (>= 6.18 < 6.18.33) • linux linux kernel (>= 6.19 < 7.0.10) • linux linux kernel 7.1

Related

Weakness · CWE (1)

  • CWE-667 Improper Locking weakness

References