Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9190C3EAC84 for ; Sat, 15 Aug 2026 12:32:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786797163; cv=none; b=L19mBNiaQeJrDOCn9x49MnluM6e7sNVGQPM0ZWe1EL6eIhC84vQ6aRhaZ2iTodqMdT8/9Vn0bIv6NSCjuI6mjrbcs96/9MNDPORfIw0g3RMoSZaShOro/ZNT3B30tqFGNXHB3yaSzi6yF+8oge/JtwNh1yQovs9NnWTT7MEErK4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786797163; c=relaxed/simple; bh=VhP6EEJdABtyhBjFdUKC4ggjoggOTYRpYmDEGN4Nz+E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X3rpm+NqORhLuMZ9uoLmtAvVOmV0+197u8NLdZiH3KzvtTT7R9LD2AY/Cyfr+OusSB+HwvYRPUkDkQKEOqx0abFiAdk/PIxhv/1eV9WLgbCg9XgWxRlaGBDbQBLjo442TdyFOr4NT+VBJETAYlWh/u/TjkyS8vYc3qGX9LlzNp8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=spuhFBby; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="spuhFBby" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBEA81F000E9; Sat, 15 Aug 2026 12:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786797162; bh=eh/qncgGDispnr6hMJpYu5ZCEe6xnHAO1JMKhIvon6g=; h=From:To:Cc:Subject:Date:Reply-To; b=spuhFBbyav0/BBqlqvy04nC42YlNSiw4ZJLDsqgHYbazVNSjxOgURRnWZCGbru4Tu b6bu41fzkfhO+ww/5r1xBT7R0E6EZ+umDCi3W+GvjfKbi7kziMj0eNHnrpaz4mQlI1 U7TuaAdrgXF7jmd0zJPCqC7kH0V2DYzW5UAqFCVM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74514: KVM: s390: pci: Fix memory accounting for pinned/unpinned pages Date: Sat, 15 Aug 2026 21:26:35 +0900 Message-ID: <2026081543-CVE-2026-74514-9f7b@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2642; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U9rDbDm9GTJyQT70JhEPZP1oBtosX1z2smzV57EU3Fo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNUccVlu9Sta8W3KIzTeio8vnYa180Slw3z3xVfqPI+ //elfbOHTEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRz80MM/7+FE532RZ4/WaF 85bF9t//OZ4qZpjv3aCZ/7dR1WSun5Dv7GkyOY1X/TUA 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: KVM: s390: pci: Fix memory accounting for pinned/unpinned pages The account_mem() and unaccount_mem() functions call get_uid() which increments the reference count of struct user_struct on every invocation. But we don't decrement the count by calling free_uid(). It also accounted/unaccounted the pages against the current->mm. But its possible the unaccount_mem() can be called from a different process context than the one that originally pinned the pages. Let's fix this by storing the pinning process user_struct and mm_struct when accounting for pinned pages, and subsequently free these resources when the pages are unpinned. [borntraeger@linux.ibm.com: Fixed whitespace] The Linux kernel CVE team has assigned CVE-2026-74514 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 3c5a1b6f0a18520a0edd0600fef6f1a8553b8fdc and fixed in 6.18.44 with commit 70871b121f81d08879363cb1238a4c85c5c2800c Issue introduced in 6.0 with commit 3c5a1b6f0a18520a0edd0600fef6f1a8553b8fdc and fixed in 7.1.8 with commit e3f732e086e438c52c7400bd2734bb166aa4752c Issue introduced in 6.0 with commit 3c5a1b6f0a18520a0edd0600fef6f1a8553b8fdc and fixed in 7.2-rc6 with commit 36f6999ecde3976731a8bfc0b8e667da6f593069 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-2026-74514 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: arch/s390/kvm/pci.c arch/s390/kvm/pci.h 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/70871b121f81d08879363cb1238a4c85c5c2800c https://git.kernel.org/stable/c/e3f732e086e438c52c7400bd2734bb166aa4752c https://git.kernel.org/stable/c/36f6999ecde3976731a8bfc0b8e667da6f593069