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 1EBB81E495 for ; Wed, 19 Jun 2024 06:20:31 +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=1718778032; cv=none; b=s3Pww75y3ZZGzrk5TqgCW8AssNS664bqkD5NhOWfJff4dRm9hEOrNOy1bdGK9tkWPbbq1pOPwNgDm+Iw1Hy7TS7Xzrvacj6rLeiMX/Vs5k32024Hr5qdoSGANq7d452nz6wfogfvfphZml/prdDQWAEYf5wB2w3LOi+mxEAKwVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718778032; c=relaxed/simple; bh=qqFPUyK0U/8jm9ebn6q/PJVIllHzZejoUjnV2P/4ZnQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kw1gw2UIgceSs6LkcntoRNSlPejpcsrH2t5CDuID5SuSaQh309qKyfT2HsE8Yb8mitKji6F7bZBofEKz3BD/gz+4DMmLsQo5Q2O5IBW7vOGe1GPHmRgqPlYF4RWhxeKOiCKZZez99mw7fmiBZnMaJYpSSniguzcGC49+djmqk4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jcSwsiBF; 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="jcSwsiBF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E9A5C2BBFC; Wed, 19 Jun 2024 06:20:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718778031; bh=qqFPUyK0U/8jm9ebn6q/PJVIllHzZejoUjnV2P/4ZnQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jcSwsiBF6/vDtE5rTZzJ8h75XQcrVUqdZCGgfU/YUbJw7AUbahoHOJzCSLvlcDiGA F6id6twQsHPbEf7XRbJ33zv2Wr1DE0FwxehbswphMA6MTglqEsFtS6lM8UNL5u8Qbm 2CpsLlx/aXv7VCsZbRqmONBmferh1cnu1GpPZx4Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36978: net: sched: sch_multiq: fix possible OOB write in multiq_tune() Date: Wed, 19 Jun 2024 08:20:27 +0200 Message-ID: <2024061926-CVE-2024-36978-b4b8@gregkh> X-Mailer: git-send-email 2.45.2 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=1675; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qqFPUyK0U/8jm9ebn6q/PJVIllHzZejoUjnV2P/4ZnQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFFauYfyRP/DrhRDVzK8ehK03lh89fFy03cP6WcnKSQ 9WmT8GzOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAis/cyLDj5Xuz/xdf9p9bn xMhlJApsuti3eT3DHC6Ts/cktZUmiD3b1NuYufR30DZdZQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net: sched: sch_multiq: fix possible OOB write in multiq_tune() q->bands will be assigned to qopt->bands to execute subsequent code logic after kmalloc. So the old q->bands should not be used in kmalloc. Otherwise, an out-of-bounds write will occur. The Linux kernel CVE team has assigned CVE-2024-36978 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit c2999f7fb05b and fixed in 6.10-rc3 with commit affc18fdc694 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-2024-36978 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_multiq.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/affc18fdc694190ca7575b9a86632a73b9fe043d