Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9380408000 for ; Wed, 27 May 2026 13:04:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887091; cv=none; b=IETnOaX8XPuhnM9yLQ3X8K1OQcKVBpWQyRcQ0Vf3y0f8NZdzXbEg7Z/cypL4/CN3iNKr3mD/nYB+g6Z9GQgyUk94fiFE2ikkZgb9VeDL2+SabFbtIQjjjGjCLdNyzG3EZXG1hEC9Umep8YXDwCfm7fV0EULBxbN+nLZYCqZUBd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887091; c=relaxed/simple; bh=/IffokGgKAArMqerzwwQhqbxOLvpUlJeRgXa6JBoH1c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Du6SIlTCGTtUBiX1Z7fP5JiRO/TVGQQJl07ahQ6l3eGsJydcYroPzg3f7CZ4Rqpvwkku7xkvDpyxndHNpGA7AV7POHGX6ZPyJs0HQ60WmzltsFTC/cOF5yJgph2aDXV1jg4gR4Psr3iwj8VwQg/KQsudavVjVK8e10gGUukiSTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L7YuBuDa; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L7YuBuDa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 164561F000E9; Wed, 27 May 2026 13:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887090; bh=A2CsMTdAXnOLf1kgSFnSPSaY3pRXMJMo1rCKl4lWbvY=; h=From:To:Cc:Subject:Date:Reply-To; b=L7YuBuDagHaP1Eq3Tu1zxvJkL98Ux6pDssbCDbFzQY3VzM6bk5sI0qU2G32iqiz24 NqB9frAxa+Ohj6o8rhrmMRIeHDwOzb2SXUNwRyI36sCYiQjc31UZnwl4xYYQ2yYohS evK4HoPF+adLVIG9xpOFmyTedhawsC5OzzpFimhE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46047: net: qrtr: ns: Fix use-after-free in driver remove() Date: Wed, 27 May 2026 14:59:38 +0200 Message-ID: <2026052752-CVE-2026-46047-5701@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3100; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ELczrO7kmhyCxOlr8NsjRr/5F83rfonqb77aJCr8s98=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir3rcLq7/vKHDScLKm3+7251vEpO3xwQcm9ybc4z90 tpvxo/OdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHm5imCtSzJyyOeDeAfn6 Y6y+Vi6tb6o+fWeYp3ds7YvqS66rX9a+3n7rx/Nsw12dlwE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-46047 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 6.6.140 with commit 0f313eb6a8f6dffa491373cf3afab979fa1c02f4 Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 6.12.86 with commit db3c60ec772de30acae92d560dfcc5258e58dbe8 Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 6.18.27 with commit 2e127ceb1c415e246076d8e09e23e443a7a2038f Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 7.0.4 with commit f96779e916576e81430ebb326baff6e433fef8ae Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 7.1-rc1 with commit 7809fea20c9404bfcfa6112ec08d1fe1d3520beb Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-46047 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/qrtr/ns.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/0f313eb6a8f6dffa491373cf3afab979fa1c02f4 https://git.kernel.org/stable/c/db3c60ec772de30acae92d560dfcc5258e58dbe8 https://git.kernel.org/stable/c/2e127ceb1c415e246076d8e09e23e443a7a2038f https://git.kernel.org/stable/c/f96779e916576e81430ebb326baff6e433fef8ae https://git.kernel.org/stable/c/7809fea20c9404bfcfa6112ec08d1fe1d3520beb