CVE-2026-46047

net: qrtr: ns: Fix use-after-free in driver remove()

State
Published
Severity
Not scored
Published
May 27, 2026
Updated
Oct 15, 2026
Reserved
May 13, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net: qrtr: ns: Fix use-after-free in driver remove()

In the remove callback, if a packet arrives after destroy_workqueue() is called, but before sock_release(), the qrtr_ns_data_ready() callback will try to queue the work, causing use-after-free issue.

Fix this issue by saving the default 'sk_data_ready' callback during qrtr_ns_init() and use it to replace the qrtr_ns_data_ready() callback at the start of remove(). This ensures that even if a packet arrives after destroy_workqueue(), the work struct will not be dereferenced.

Note that it is also required to ensure that the RX threads are completed before destroying the workqueue, because the threads could be using the qrtr_ns_data_ready() callback.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0c2204a4ad710d95d348ea006f14ba926e842ffd to before 65168712c216584ff482a7d1a67589f2079b2634Affected
  • 0c2204a4ad710d95d348ea006f14ba926e842ffd to before dff081c3602f2fd810f69ef47945a226980dd05dAffected
  • 0c2204a4ad710d95d348ea006f14ba926e842ffd to before 4ae0bd51bf7079e9c2a06b5de0ae04ba70d10167Affected
  • 0c2204a4ad710d95d348ea006f14ba926e842ffd to before 0f313eb6a8f6dffa491373cf3afab979fa1c02f4Affected
  • 0c2204a4ad710d95d348ea006f14ba926e842ffd to before db3c60ec772de30acae92d560dfcc5258e58dbe8Affected
  • 0c2204a4ad710d95d348ea006f14ba926e842ffd to before 2e127ceb1c415e246076d8e09e23e443a7a2038fAffected
  • 0c2204a4ad710d95d348ea006f14ba926e842ffd to before f96779e916576e81430ebb326baff6e433fef8aeAffected
  • 0c2204a4ad710d95d348ea006f14ba926e842ffd to before 7809fea20c9404bfcfa6112ec08d1fe1d3520bebAffected
LinuxLinux
  • 5.7Affected
  • before 5.7Not affected
  • 5.10.258 through 5.10.*Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.6.140 through 6.6.*Not affected
  • 6.12.86 through 6.12.*Not affected
  • 6.18.27 through 6.18.*Not affected
  • 7.0.4 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

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.