From mboxrd@z Thu Jan 1 00:00:00 1970 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 98B6C217658 for ; Wed, 26 Feb 2025 02:14:24 +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=1740536064; cv=none; b=OEtkUy6WJ2nlD2DhxP5iM+T0zMw+mVh6dWkiO8XK+X9c66l4KpPjdB4e1HIahUJ/V/5m8DI/uxHhnjC7+Ee9PvvCr5nF3wwAyI1CnY/5ulmXT8tg0qDaWa/Td9NAtYLJCuAf5E69AGaEbLJpSMmC6+5vEKodNhsNxTSPJylL2+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536064; c=relaxed/simple; bh=WBni0KdNL3l/LWQTGU5uuTlgZumwgO8YTsqG76Flg7Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Gs0TD+Fql8LHdwo+izbubpTof64iXHZ+w50ORdyxFNmulaiX31hfcKZcoDA4Rf553cYlYjXcNmh71afPYpSqTteQyz1ToTMAdsSvpC8hi7qhugBiDFC3RQh/32XjNrbFv9EbrYaHnU2utmImgeSKLntfZx60BVFpA0amw9dqva4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RwMW6n0c; 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="RwMW6n0c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CB63C4CEDD; Wed, 26 Feb 2025 02:14:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536064; bh=WBni0KdNL3l/LWQTGU5uuTlgZumwgO8YTsqG76Flg7Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RwMW6n0ceKSLAOEqAbVmPaVocBBg/pZ++wiuyn7sMuU0JZCub8uI5P3G+Gp+NP7PO 2G9SXj+/IcD6drd9D+TIVny3jYa8zWv8zFw2sAASZBB2/NjcdrreE2JQWOyeeLGAcj a0UdONB1au9yjcE7039tJzacP8+718WSkRCx5H0o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49444: module: fix [e_shstrndx].sh_size=0 OOB access Date: Wed, 26 Feb 2025 03:11:58 +0100 Message-ID: <2025022658-CVE-2022-49444-ff21@gregkh> X-Mailer: git-send-email 2.48.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=2984; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WBni0KdNL3l/LWQTGU5uuTlgZumwgO8YTsqG76Flg7Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yr89L0tOFL1fWLi+NtjLYz//sSMpws3p1VMK0+b3W k7j54vqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImEGDLMj3zs6Jdr35J1JOFX 6LdzP/9X8t9SYphntTH1C7t+3Ywdc4RvhLt8f+njzuYLAA== 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: module: fix [e_shstrndx].sh_size=0 OOB access It is trivial to craft a module to trigger OOB access in this line: if (info->secstrings[strhdr->sh_size - 1] != '\0') { BUG: unable to handle page fault for address: ffffc90000aa0fff PGD 100000067 P4D 100000067 PUD 100066067 PMD 10436f067 PTE 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 7 PID: 1215 Comm: insmod Not tainted 5.18.0-rc5-00007-g9bf578647087-dirty #10 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-4.fc34 04/01/2014 RIP: 0010:load_module+0x19b/0x2391 [rebased patch onto modules-next] The Linux kernel CVE team has assigned CVE-2022-49444 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit ec2a29593c83ed71a7f16e3243941ebfcf75fdf6 and fixed in 5.15.54 with commit 09cb6663618a74fe5572a4931ecbf098832e79ec Issue introduced in 5.12 with commit ec2a29593c83ed71a7f16e3243941ebfcf75fdf6 and fixed in 5.17.14 with commit 921630e2e5124a04158129a8f22f4b425e61a858 Issue introduced in 5.12 with commit ec2a29593c83ed71a7f16e3243941ebfcf75fdf6 and fixed in 5.18.3 with commit 45a76414b6d8b8b39c23fea53b9d20e831ae72a0 Issue introduced in 5.12 with commit ec2a29593c83ed71a7f16e3243941ebfcf75fdf6 and fixed in 5.19 with commit 391e982bfa632b8315235d8be9c0a81374c6a19c Issue introduced in 5.4.110 with commit 05d891e76dde3e430c707dae7d85139794eeadbd Issue introduced in 5.10.26 with commit d802672c7f00963613f289579073ac519f0d306c Issue introduced in 5.11.3 with commit 214aa69cac91a723239118bbbfe77d5654ddff6b 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-2022-49444 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: kernel/module/main.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/09cb6663618a74fe5572a4931ecbf098832e79ec https://git.kernel.org/stable/c/921630e2e5124a04158129a8f22f4b425e61a858 https://git.kernel.org/stable/c/45a76414b6d8b8b39c23fea53b9d20e831ae72a0 https://git.kernel.org/stable/c/391e982bfa632b8315235d8be9c0a81374c6a19c