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 DC20C26E6F6 for ; Sat, 4 Oct 2025 15:18:48 +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=1759591129; cv=none; b=psJL0EcWxMxeyj9W/TQlv8vwXKTk3uINN2LRyadP6UOKeX0gWb+kUqZnxDVARg3SbQVU0qRQpyeCwpfSm7/wylxEev21nwtnVyHXfL+LKbYtMUf0uVb/zq0M5S9yFoo9j4U8WpT7jWceQb8F9F9inHiNVu5E/CfVV0GdglfsHFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591129; c=relaxed/simple; bh=Orruhv4NV8szADULg4DdsifZAn7zl8Xn4KPEpujnQDw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DJewKt33ndcOgvg7i7r6Cw2qg7pZPoqABj5YPARQArrICLiBy/P4SKEDLK0T+1cxP9dyONf277mA5c39FgcBuTcQKVmYK6pbA+uAebmSu3kz6OJq0r7s/DHmIliwapIu0/hcNUmsJJ75w69C7ydgsQ5xYVwn/7sZHsSQoDYXDsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pxvMvxcV; 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="pxvMvxcV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69D3AC4CEF1; Sat, 4 Oct 2025 15:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591128; bh=Orruhv4NV8szADULg4DdsifZAn7zl8Xn4KPEpujnQDw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pxvMvxcVUFwfgM3w4Q72FluIh0W7/bXoUvBOE025QXSaYOAOO+J+CuCgrPN5B17gX o7uE9gy0TfN99OF8zyRXaIMvjD5tvaW4EGUMtpVnRZ67Gmu5qNDcFRh6/XE9wzBVsn 0t/1l3HeUY3+mmjJhjzT2r3+DRRHwJdyZ2E8WobI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50482: iommu/vt-d: Clean up si_domain in the init_dmars() error path Date: Sat, 4 Oct 2025 17:16:41 +0200 Message-ID: <2025100440-CVE-2022-50482-0291@gregkh> X-Mailer: git-send-email 2.51.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=3302; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tv/W/FWdFJkjFbWYbaI2VMD5Zmywd2jmlZqAL+NypV0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrSLOzHZhCKhM2lbDfJ/51s4ahVcX1x5Q1k7iPTfrn HORkq9eRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk83uGOXx9oT8MZE9cMjM+ n/bMa466lsu7ywwLLi3yXWu23yA+UkSj811xjNiqh3MlAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Clean up si_domain in the init_dmars() error path A splat from kmem_cache_destroy() was seen with a kernel prior to commit ee2653bbe89d ("iommu/vt-d: Remove domain and devinfo mempool") when there was a failure in init_dmars(), because the iommu_domain cache still had objects. While the mempool code is now gone, there still is a leak of the si_domain memory if init_dmars() fails. So clean up si_domain in the init_dmars() error path. The Linux kernel CVE team has assigned CVE-2022-50482 to this issue. Affected and fixed versions =========================== Issue introduced in 4.2 with commit 86080ccc223aabf8d0b85a504f4f06aa88e82fb3 and fixed in 4.14.298 with commit 749bea542b67513e99240dc58bbfc099e842d508 Issue introduced in 4.2 with commit 86080ccc223aabf8d0b85a504f4f06aa88e82fb3 and fixed in 4.19.264 with commit 5cecfe151874b835331efe086bbdcaeaf64f6b90 Issue introduced in 4.2 with commit 86080ccc223aabf8d0b85a504f4f06aa88e82fb3 and fixed in 5.4.221 with commit 724483b585a1b1e063d42ac5aa835707ff2ec165 Issue introduced in 4.2 with commit 86080ccc223aabf8d0b85a504f4f06aa88e82fb3 and fixed in 5.10.152 with commit d74196bb278b8f8af88e16bd595997dfa3d6fdb0 Issue introduced in 4.2 with commit 86080ccc223aabf8d0b85a504f4f06aa88e82fb3 and fixed in 5.15.76 with commit 0365d6af75f9f2696e94a0fef24a2c8464c037c8 Issue introduced in 4.2 with commit 86080ccc223aabf8d0b85a504f4f06aa88e82fb3 and fixed in 6.0.6 with commit c4ad3ae4c6be9d8b0701761c839771116bca6ea3 Issue introduced in 4.2 with commit 86080ccc223aabf8d0b85a504f4f06aa88e82fb3 and fixed in 6.1 with commit 620bf9f981365c18cc2766c53d92bf8131c63f32 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-50482 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: drivers/iommu/intel/iommu.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/749bea542b67513e99240dc58bbfc099e842d508 https://git.kernel.org/stable/c/5cecfe151874b835331efe086bbdcaeaf64f6b90 https://git.kernel.org/stable/c/724483b585a1b1e063d42ac5aa835707ff2ec165 https://git.kernel.org/stable/c/d74196bb278b8f8af88e16bd595997dfa3d6fdb0 https://git.kernel.org/stable/c/0365d6af75f9f2696e94a0fef24a2c8464c037c8 https://git.kernel.org/stable/c/c4ad3ae4c6be9d8b0701761c839771116bca6ea3 https://git.kernel.org/stable/c/620bf9f981365c18cc2766c53d92bf8131c63f32