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 A1BCE20FA9C for ; Mon, 30 Jun 2025 07:29:59 +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=1751268599; cv=none; b=XGToHdrSi4FHyndshckVel0FMqzh9G3ewSL8Dg65oK6mnUX/7Zr5eecXcjqMrFWYcwFysQPoaAZ6ueNN1yRulWxTgBJkOpulK7eWITM2C4Ttuo60yZGJ1Sn10VAMktIBhQOjlOHWT0oYCiv1LO4clxYdJHDp4ujxH2NLRA5HVQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751268599; c=relaxed/simple; bh=1qx1DhGEq0SRyjhXOoeygksp7J0adE7LuuXwDzt+JlA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=YF1z1lBPRn7DjkQXuPu+4uDD9dvoMyoW9xOLAcWp2uqHRAArEVmAUCO2d7DkXQgweWIf1FGxa4MaGdthz/pDH31UgmXX8x0+2I3gll5vJnP1prjsJXKFWbwzWbi8HYHt6rzF7Tg8t1gds6mTp8q5wFSKrKh00j7Mt7M6hiFqZ4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j95j65Kq; 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="j95j65Kq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A664C4CEE3; Mon, 30 Jun 2025 07:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751268599; bh=1qx1DhGEq0SRyjhXOoeygksp7J0adE7LuuXwDzt+JlA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j95j65KqQ+GvaNODqB4ZKNIktDfJQqw4ioG0A9xnL+zhRtpfuYwljEtwwXs3lVr16 xpY9HdYAYUv16bHTnmEt6ulNzCWpouTB+G4RWDPtlWeHlu9tumahwdE0ebx/Yg9X5g PGJP//+fl6s0JKihRUp6H2e7kQidUMmGWO9XMsvI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38087: net/sched: fix use-after-free in taprio_dev_notifier Date: Mon, 30 Jun 2025 09:29:51 +0200 Message-ID: <2025063052-CVE-2025-38087-cd0f@gregkh> X-Mailer: git-send-email 2.50.0 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=2439; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RXgtZQkBko4Z9hRyseiNpMl9A2Fa0yNUvnBo+2vnvRo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlJNh+O3wksyf7wf9mn6ulJMrWrbi40/BX5d7aEeY2a2 Mbd3vUMHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARvvMMC7Z86b8jsmyt34ll ot+OHV89cfmDrZ8YFrT/fdB6YJo0z8U9D1XT8zsqVu758RYA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net/sched: fix use-after-free in taprio_dev_notifier Since taprio’s taprio_dev_notifier() isn’t protected by an RCU read-side critical section, a race with advance_sched() can lead to a use-after-free. Adding rcu_read_lock() inside taprio_dev_notifier() prevents this. The Linux kernel CVE team has assigned CVE-2025-38087 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit fed87cc6718ad5f80aa739fee3c5979a8b09d3a6 and fixed in 6.6.95 with commit 8c5713ce1ced75f9e9ed5c642ea3d2ba06ead69c Issue introduced in 6.3 with commit fed87cc6718ad5f80aa739fee3c5979a8b09d3a6 and fixed in 6.12.35 with commit 8a008c89e5e5c5332e4c0a33d707db9ddd529f8a Issue introduced in 6.3 with commit fed87cc6718ad5f80aa739fee3c5979a8b09d3a6 and fixed in 6.15.4 with commit b1547d28ba468bc3b88764efd13e4319bab63be8 Issue introduced in 6.3 with commit fed87cc6718ad5f80aa739fee3c5979a8b09d3a6 and fixed in 6.16-rc3 with commit b160766e26d4e2e2d6fe2294e0b02f92baefcec5 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-38087 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_taprio.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/8c5713ce1ced75f9e9ed5c642ea3d2ba06ead69c https://git.kernel.org/stable/c/8a008c89e5e5c5332e4c0a33d707db9ddd529f8a https://git.kernel.org/stable/c/b1547d28ba468bc3b88764efd13e4319bab63be8 https://git.kernel.org/stable/c/b160766e26d4e2e2d6fe2294e0b02f92baefcec5