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 1A45B43AD9 for ; Wed, 1 May 2024 05:23:55 +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=1714541035; cv=none; b=rN/ZselGB0ZglfF1ofvCO8Vwg2QvPWx0f+iu/MJk1a+91U4Tly9S9annmNV1juxLkzKoyduk57UO94YG3l4JYpv5QQuCBegw2XO4ie88iXEW/36OtNuxsWdEdml75T9ENXZjYjF8Nwcj9CoLPEYCUyXJjvw2LaM8iUuSA550S/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714541035; c=relaxed/simple; bh=uPH8LXCimA3y2b3+fn5FTGA/fs3ZNcW27/ut/i34oVs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fpzrVlBMZ2CUAp0dPahlCfYV7xQqXBOUj75BSlfCK+MxD5Ak6VL8Wf6O7CanV528tdtc9EG0KYb3Z/Va2LUR0gK/5GCp1TRYs/nrkmOclXUnYiBIUyqnZsNrtxZgd0ZN0syIcpcCB0WBsTS726JcizIRcB2jH4bhF93UUEFqRxQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i0bFQsLV; 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="i0bFQsLV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96094C113CC; Wed, 1 May 2024 05:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714541035; bh=uPH8LXCimA3y2b3+fn5FTGA/fs3ZNcW27/ut/i34oVs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=i0bFQsLVCc+A+E0a4pU0jNO0oRKYXsi8hFflN6pA9bvwj7G8del79UPwQ28Ynfa3A AMEK6QOYt/tBguqpsJQRCc+XCfF0RXb1KrEQ1browJyWiFF3kb14ECZDWj9OrCt64t PAh/CuvZ0/AYKXvDobqS7KoYEflTK3PGsJWLMpH8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26977: pci_iounmap(): Fix MMIO mapping leak Date: Wed, 1 May 2024 07:22:07 +0200 Message-ID: <2024050133-CVE-2024-26977-cf63@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=2486; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uPH8LXCimA3y2b3+fn5FTGA/fs3ZNcW27/ut/i34oVs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGF2PvJn+aVv+/a+ZFe+MVMaZHM01c7yd+zb0zN/Z09 0zm2XrPOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiIrkMC/Zo7OLfIeE85/vd 9uhVvoeOZDbEBDDMLxJ46GTzbUOaqm+9Hw9PUPd2By8XAA== 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: pci_iounmap(): Fix MMIO mapping leak The #ifdef ARCH_HAS_GENERIC_IOPORT_MAP accidentally also guards iounmap(), which means MMIO mappings are leaked. Move the guard so we call iounmap() for MMIO mappings. The Linux kernel CVE team has assigned CVE-2024-26977 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 316e8d79a095 and fixed in 5.15.154 with commit 5e4b23e7a7b3 Issue introduced in 5.15 with commit 316e8d79a095 and fixed in 6.1.84 with commit 6d21d0356aa4 Issue introduced in 5.15 with commit 316e8d79a095 and fixed in 6.6.24 with commit b5d40f02e722 Issue introduced in 5.15 with commit 316e8d79a095 and fixed in 6.7.12 with commit f3749345a9b7 Issue introduced in 5.15 with commit 316e8d79a095 and fixed in 6.8.3 with commit af280e137e27 Issue introduced in 5.15 with commit 316e8d79a095 and fixed in 6.9-rc1 with commit 7626913652cc 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-26977 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/pci_iomap.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/5e4b23e7a7b33a1e56bfa3e5598138a2234d55b6 https://git.kernel.org/stable/c/6d21d0356aa44157a62e39c0d1a13d4c69a8d0c8 https://git.kernel.org/stable/c/b5d40f02e7222da032c2042aebcf2a07de9b342f https://git.kernel.org/stable/c/f3749345a9b7295dd071d0ed589634cb46364f77 https://git.kernel.org/stable/c/af280e137e273935f2e09f4d73169998298792ed https://git.kernel.org/stable/c/7626913652cc786c238e2dd7d8740b17d41b2637