All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-99992: ntfs: fix kmap_local leak in ntfs_check_logfile()
@ 2026-11-30 13:20 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-30 13:20 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

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

ntfs: fix kmap_local leak in ntfs_check_logfile()

ntfs_check_logfile() calls kmap_local_folio() on every iteration of its
search loop but kunmap_local() only once per folio. The loop visits
positions 0, 512, 1024, 2048, 4096 and so on. With 4 KiB pages the first
four are in one page, so a mount whose first LogFile folio is in highmem
leaves three entries on the kmap_local stack of the mounting task.
Kernels without HIGHMEM are not affected.

The leaked entries keep migration disabled. nr_pinned of the runqueue
the mount ran on stays raised after the task exits, so taking that CPU
offline blocks forever in balance_hotplug_wait().

The fifth mount in one task reaches KM_MAX_IDX (12 leaked entries plus
4 in the loop) and hits the BUG_ON() in kmap_local_idx_push():

  kernel BUG at mm/highmem.c:480!

On x86-32 the generic entry code also warns on return to user space:

  DEBUG_LOCKS_WARN_ON(current->kmap_ctrl.idx)
  WARNING: include/linux/highmem-internal.h:17 at __do_fast_syscall_32+0x21e/0x550

Map each page once, when it is read, and unmap that address.

The Linux kernel CVE team has assigned CVE-2026-99992 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 7.1 with commit 5218cd102aec7ae8df6af6e681ebb0b6d8e798f4 and fixed in 7.3.4 with commit f45b6993d70d5eda419f1a95534d5a6b2c86954f
	Issue introduced in 7.1 with commit 5218cd102aec7ae8df6af6e681ebb0b6d8e798f4 and fixed in 7.4-rc1 with commit a5ec71084996aec76d07e0e530a345cdd202dc1a

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-99992
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:
	fs/ntfs/logfile.c


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/f45b6993d70d5eda419f1a95534d5a6b2c86954f
	https://git.kernel.org/stable/c/a5ec71084996aec76d07e0e530a345cdd202dc1a

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:20 CVE-2026-99992: ntfs: fix kmap_local leak in ntfs_check_logfile() Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.