{"id":"CVE-2026-74514","summary":"KVM: s390: pci: Fix memory accounting for pinned/unpinned pages","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: s390: pci: Fix memory accounting for pinned/unpinned pages\n\nThe account_mem() and unaccount_mem() functions call get_uid() which\nincrements the reference count of struct user_struct on every invocation.\nBut we don't decrement the count by calling free_uid(). It also\naccounted/unaccounted the pages against the current-\u003emm. But its possible\nthe unaccount_mem() can be called from a different process context than the\none that originally pinned the pages.\n\nLet's fix this by storing the pinning process user_struct and mm_struct\nwhen accounting for pinned pages, and subsequently free these resources\nwhen the pages are unpinned.\n\n[borntraeger@linux.ibm.com: Fixed whitespace]","modified":"2026-08-18T03:31:13.478066102Z","published":"2026-08-15T12:27:34.947Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74514.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/36f6999ecde3976731a8bfc0b8e667da6f593069"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70871b121f81d08879363cb1238a4c85c5c2800c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e3f732e086e438c52c7400bd2734bb166aa4752c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74514.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74514"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3c5a1b6f0a18520a0edd0600fef6f1a8553b8fdc"},{"fixed":"70871b121f81d08879363cb1238a4c85c5c2800c"},{"fixed":"e3f732e086e438c52c7400bd2734bb166aa4752c"},{"fixed":"36f6999ecde3976731a8bfc0b8e667da6f593069"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74514.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.18.44"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74514.json"}}],"schema_version":"1.9.0"}