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 9E2D913AD19 for ; Wed, 17 Apr 2024 10:15:06 +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=1713348906; cv=none; b=A8A4TmhZFa2TXhoebS9cMrjCGeW1QNS4WfSLuHRwq/6JZzZ9t0YXJkXJWqveTgsGrW/S92i9w2NTCrvuCpmKqmw9Kz81/AkS06iP4ndrOvrc1+S9T9KIcm6JRlVF0vD2fQ2cvuTi885UatEgCqiQ04SLB0/5YSCwj5kFaYKSjH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713348906; c=relaxed/simple; bh=HbSkD1kLNQ/QysGxx6m5oqVBAA4j94jkb2ra+mJlgno=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Rp3VcNBWNiPTuGbOjhhjEsWVcPnKSGUhLa1GrBL+w39Imu8Hh+rt0OWXZ7wkTsOyBTNsfUnns4YK2gwQHrXL1At6qrfD2dZ6LAlvTAbEimPzgqGDN8EzfIf5+TTJyiO+96wbQMCbPFKQd6248WtZCRxkBtePEvL80P80rZE9M8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mbibQQW9; 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="mbibQQW9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7FE1C072AA; Wed, 17 Apr 2024 10:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713348906; bh=HbSkD1kLNQ/QysGxx6m5oqVBAA4j94jkb2ra+mJlgno=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mbibQQW9f9sngOxd04z/Y+9vR5sLEQzlCwkngHzic3CRVRsi0/SNh/mBkDBCG1Yy9 rgonnLl3BEZRLkGzCwptJhm7Zf/rxRpBkn573zaYTvFquVNUMzBrAMbK1C/eUFF5ie r/DltLhqFMQ0uDO/OKPrBDzrWvcGkPFo4GO/5xaE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26849: netlink: add nla be16/32 types to minlen array Date: Wed, 17 Apr 2024 12:14:56 +0200 Message-ID: <2024041754-CVE-2024-26849-9e3c@gregkh> X-Mailer: git-send-email 2.44.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=2772; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HbSkD1kLNQ/QysGxx6m5oqVBAA4j94jkb2ra+mJlgno=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyC+W+Jb2oM9HrrVs2X3sryza++yfan6m4LAjTsjgd0 /2pY2lRRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkWTXDXMnU/HsewvKrXCaY 789p0tOSFlB5yDDf795zyyV3LorvTc/qO3z8Bkub27o+AA== 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: netlink: add nla be16/32 types to minlen array BUG: KMSAN: uninit-value in nla_validate_range_unsigned lib/nlattr.c:222 [inline] BUG: KMSAN: uninit-value in nla_validate_int_range lib/nlattr.c:336 [inline] BUG: KMSAN: uninit-value in validate_nla lib/nlattr.c:575 [inline] BUG: KMSAN: uninit-value in __nla_validate_parse+0x2e20/0x45c0 lib/nlattr.c:631 nla_validate_range_unsigned lib/nlattr.c:222 [inline] nla_validate_int_range lib/nlattr.c:336 [inline] validate_nla lib/nlattr.c:575 [inline] ... The message in question matches this policy: [NFTA_TARGET_REV] = NLA_POLICY_MAX(NLA_BE32, 255), but because NLA_BE32 size in minlen array is 0, the validation code will read past the malformed (too small) attribute. Note: Other attributes, e.g. BITFIELD32, SINT, UINT.. are also missing: those likely should be added too. The Linux kernel CVE team has assigned CVE-2024-26849 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit ecaf75ffd5f5 and fixed in 6.1.81 with commit 0ac219c4c3ab Issue introduced in 6.1 with commit ecaf75ffd5f5 and fixed in 6.6.21 with commit a2ab02815184 Issue introduced in 6.1 with commit ecaf75ffd5f5 and fixed in 6.7.9 with commit 7a9d14c63b35 Issue introduced in 6.1 with commit ecaf75ffd5f5 and fixed in 6.8 with commit 9a0d18853c28 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-26849 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: lib/nlattr.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/0ac219c4c3ab253f3981f346903458d20bacab32 https://git.kernel.org/stable/c/a2ab028151841cd833cb53eb99427e0cc990112d https://git.kernel.org/stable/c/7a9d14c63b35f89563c5ecbadf918ad64979712d https://git.kernel.org/stable/c/9a0d18853c280f6a0ee99f91619f2442a17a323a