CVE-2026-138864

Not scored yetLast modified Nov 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

mm/page_counter: avoid integer overflow in effective_protection()

Patch series "mm/mglru: fix ineffective memory protection for non-kswapd reclaim", v4.

For MGLRU, memory.min/low is not honored during non-kswapd global reclaim (global direct reclaim and root-level memory.reclaim), because these paths shrink memcgs using stale protection (emin/elow).

Patch 2 is the actual fix. Patch 1 is a prerequisite: an integer overflow in effective_protection(), spotted by the sashiko review tool, which patch 2's new caller would also be exposed to.

This patch (of 2):

effective_protection() scales a parent's protection by a ratio of page counts, e.g. for recursive protection:

(parent_effective - siblings_protected) * (usage - protected) / (parent_usage - siblings_protected)

The multiply is done at unsigned long width before dividing. On systems with >= 16TB RAM the product can exceed 2^64 and wrap, giving a bogus protection value and silently breaking memory.min/low enforcement.

Use mul_u64_u64_div_u64() to multiply in a 128-bit intermediate. Because usage and parent_usage are not read atomically (a child is charged before its parent), usage - protected can briefly exceed the divisor, making the quotient overflow 64 bits and trap (#DE on x86). Cap it so the ratio stays <= 1.

Reported by the sashiko review tool [1].

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= bc50bcc6e00b8509e64875c674f4573e8b4df1e8, < c380274c205add299b48135ef6cd11e67aac29b2; >= bc50bcc6e00b8509e64875c674f4573e8b4df1e8, < d8957533806e9f291e8e65ee2bb12163ce5ecebc; >= bc50bcc6e00b8509e64875c674f4573e8b4df1e8, < 2748bfeb1c12aa99670c08a34f5ff07ba6945c89; >= bc50bcc6e00b8509e64875c674f4573e8b4df1e8, < 7809ce47b05671e1fa6d74bead892d6ad6c1403b
LinuxLinux5.7

References

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138865In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix subpool minimum reservation rollback When a reservatioCVE-2026-138866In the Linux kernel, the following vulnerability has been resolved: mm/execmem: free ROX cache chunks only when they span an entire vm areaCVE-2026-138867In the Linux kernel, the following vulnerability has been resolved: mm/memory: constrain generic_access_phys() to page boundary This patchCVE-2026-138868In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: charge folios to the target mm's memcg HugeTLB folios are CVE-2026-138869In the Linux kernel, the following vulnerability has been resolved: md: don't hand out the array before md_alloc() has added mddev->kobj mCVE-2026-138876.5Inappropriate implementation in NFC in Google Chrome on Android prior to 150.0.7871.47 allowed a remote attacker who had compromised the renCVE-2026-1388707.0In the Linux kernel, the following vulnerability has been resolved: riscv: cfi: Bounds check restore token before swap Currently the user-CVE-2026-1388719.1In the Linux kernel, the following vulnerability has been resolved: nilfs2: validate directory position after llseek in readdir nilfs_readCVE-2026-1388727.0In the Linux kernel, the following vulnerability has been resolved: ext4: fix out-of-bounds read in ext4_get_group_info() A plain read of CVE-2026-138873In the Linux kernel, the following vulnerability has been resolved: ext4: fix ABBA deadlock in ext4_rmdir() We observe the following ABBA CVE-2026-138874In the Linux kernel, the following vulnerability has been resolved: ext4: don't report delalloc data as a hole on indirect-mapped inodes WCVE-2026-1388757.8In the Linux kernel, the following vulnerability has been resolved: jbd2: don't advance j_fc_off before the buffer is recorded jbd2_fc_get
CVE-2026-138864: Unscored | Vulnix