CVE-2026-46047

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

At a glance

Severity
Not available
EPSS
EPSS 0.13 % · percentile 2 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0c2204a4ad710d95d348ea006f14ba926e842ffd < 65168712c216584ff482a7d1a67589f2079b2634 ; affected 0c2204a4ad710d95d348ea006f14ba926e842ffd < dff081c3602f2fd810f69ef47945a226980dd05d ; affected 0c2204a4ad710d95d348ea006f14ba926e842ffd < 4ae0bd51bf7079e9c2a06b5de0ae04ba70d10167 ; affected 0c2204a4ad710d95d348ea006f14ba926e842ffd < 0f313eb6a8f6dffa491373cf3afab979fa1c02f4 ; affected 0c2204a4ad710d95d348ea006f14ba926e842ffd < db3c60ec772de30acae92d560dfcc5258e58dbe8 ; affected 0c2204a4ad710d95d348ea006f14ba926e842ffd < 2e127ceb1c415e246076d8e09e23e443a7a2038f
Linux · Linuxaffected 5.7 ; unaffected 0 < 5.7 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.140 ≤ 6.6.*

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD