Bug 2517058 (CVE-2026-74514) - CVE-2026-74514 kernel: KVM: s390: pci: Fix memory accounting for pinned/unpinned pages
Summary: CVE-2026-74514 kernel: KVM: s390: pci: Fix memory accounting for pinned/unpin...
Keywords:
Status: NEW
Alias: CVE-2026-74514
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-15 12:47 UTC by OSIDB Bzimport
Modified: 2026-08-19 17:07 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-15 12:47:23 UTC
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.com: Fixed whitespace]

Comment 1 Mauro Matteo Cascella 2026-08-19 17:01:56 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026081543-CVE-2026-74514-9f7b@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.