Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 443C525C6EC for ; Mon, 28 Jul 2025 11:23:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753701832; cv=none; b=Jvd2AlDEO6naAixRguaHhehqwD9o/YJV0AUAogIJkA0Jk9ZjBqeD0JafqKZzXdCTyEt7yOp2/EIBJcXjIf0QPIvjAcJm+shzLVhIY3pwR9vh8cLbyN3j3VF2khpbW6bqhor2jEVP7zzRb3LjwrZkxJlXKaS+Z3IfI0u7pJ4lWWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753701832; c=relaxed/simple; bh=pcTiU0NQ7Jc7CB3QG2BVXFHIMTTMpxf6KmKYvVbxG7k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L0qDm2DuwXGqnNqDzlU07pGd6S7EMV/Hviti7TtuRICS1COhbGOH1r1RlqYxFXuqPYHetDE5b2MPWjHA5G8vZLmNJf1G12rEViDpwXg3VIQpdcCHM5uchC5j+uypLxvLmlSDxqTG4Ou36gnGippAUJTPQoVCU54RrYkesB7FirI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Xs9NY5pV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Xs9NY5pV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58499C4CEE7; Mon, 28 Jul 2025 11:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753701831; bh=pcTiU0NQ7Jc7CB3QG2BVXFHIMTTMpxf6KmKYvVbxG7k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Xs9NY5pVUh95QWjfRiyEQHIPFBpFmExqzLE3RTL6Pzea3pLfXF+yxUygDa7JgT6OB PvQBmjWC5NqK8W6B6eACs1sOLeZQoXpdFJ//1s82BH2HCn9JZQ2vXph7jpt6HJ/kG9 RzMOW/m/Wqsv+XNn4TVS0FZPkq91p4zIGfwjhtLE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38477: net/sched: sch_qfq: Fix race condition on qfq_aggregate Date: Mon, 28 Jul 2025 13:22:20 +0200 Message-ID: <2025072813-CVE-2025-38477-8b42@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2868; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dY3bLPFfo7OFDVzS58MtJztPpN5Hd+GTyGLwHJTGyOU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBntsanrTf5Gv7b51py3fUrJYt2FrxqCKp8xNWvbfWw/d GRXdcKbjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIxTsM852TqrhM38ctr72z 613bdcNDrtfOMDPML1e4fdDV+Za3hvHRP+kZQetmvXb6BwA= 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/sched: sch_qfq: Fix race condition on qfq_aggregate A race condition can occur when 'agg' is modified in qfq_change_agg (called during qfq_enqueue) while other threads access it concurrently. For example, qfq_dump_class may trigger a NULL dereference, and qfq_delete_class may cause a use-after-free. This patch addresses the issue by: 1. Moved qfq_destroy_class into the critical section. 2. Added sch_tree_lock protection to qfq_dump_class and qfq_dump_class_stats. The Linux kernel CVE team has assigned CVE-2025-38477 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit 462dbc9101acd38e92eda93c0726857517a24bbd and fixed in 6.1.147 with commit 466e10194ab81caa2ee6a332d33ba16bcceeeba6 Issue introduced in 3.8 with commit 462dbc9101acd38e92eda93c0726857517a24bbd and fixed in 6.6.100 with commit fbe48f06e64134dfeafa89ad23387f66ebca3527 Issue introduced in 3.8 with commit 462dbc9101acd38e92eda93c0726857517a24bbd and fixed in 6.12.40 with commit a6d735100f602c830c16d69fb6d780eebd8c9ae1 Issue introduced in 3.8 with commit 462dbc9101acd38e92eda93c0726857517a24bbd and fixed in 6.15.8 with commit c000a3a330d97f6c073ace5aa5faf94b9adb4b79 Issue introduced in 3.8 with commit 462dbc9101acd38e92eda93c0726857517a24bbd and fixed in 6.16 with commit 5e28d5a3f774f118896aec17a3a20a9c5c9dfc64 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-2025-38477 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/sched/sch_qfq.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/466e10194ab81caa2ee6a332d33ba16bcceeeba6 https://git.kernel.org/stable/c/fbe48f06e64134dfeafa89ad23387f66ebca3527 https://git.kernel.org/stable/c/a6d735100f602c830c16d69fb6d780eebd8c9ae1 https://git.kernel.org/stable/c/c000a3a330d97f6c073ace5aa5faf94b9adb4b79 https://git.kernel.org/stable/c/5e28d5a3f774f118896aec17a3a20a9c5c9dfc64