A vulnerability in the Linux kernel's mlock_fixup() function causes incorrect accounting of locked memory pages when locking or unlocking very large memory ranges (2^31 pages or more). This is due to the use of a 32-bit int for page count calculation, which truncates and sign-extends the count incorrectly on 64-bit architectures with large user address spaces. The flaw leads to inaccurate locked_vm memory accounting, potentially allowing tasks with appropriate privileges to lock memory beyond their limits or causing denial of further locks. The issue affects memory accounting only and does not alter which pages are actually locked.