Skip to contentSkip to conversation

CVE-2026-99442: nvmem: core: Fix OOB read for bit offsets of more than one byte

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

nvmem: core: Fix OOB read for bit offsets of more than one byte

When the bit offset is BITS_PER_BYTE or larger the read position is advanced by bytes_offset. This is not taken into account in the per-byte read loop which still reads cell->bytes resulting in an out of bounds read of bytes_offset bytes. The information read OOB does not leak directly as the erroneously read bits are cleared.

Detected by KASAN while looking for a use-after-free in simplefb.c.

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

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

	Issue introduced in 6.12.31 with commit a4f865ecdbdd2b466f7914c293246c3c13654fc4 and fixed in 6.12.117 with commit 2b76fa7fb0a44ded2367e51b1d296f962854301f
	Issue introduced in 6.15 with commit 7a06ef75107799675ea6e4d73b9df37e18e352a8 and fixed in 6.18.61 with commit 006ad1a97ab79f0173e44d82f75340243b54024b
	Issue introduced in 6.15 with commit 7a06ef75107799675ea6e4d73b9df37e18e352a8 and fixed in 7.3.2 with commit 91895cfc28aed7c5daad13475c68588a844843d8
	Issue introduced in 6.15 with commit 7a06ef75107799675ea6e4d73b9df37e18e352a8 and fixed in 7.4-rc1 with commit 24530401e8001aaa637dd5007fcdc6fbc00300be
	Issue introduced in 6.14.9 with commit 4ff5631498091f82f3abdf7db15e888fe60ee572

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-99442

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:
drivers/nvmem/core.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/2b76fa7fb0a44ded2367e51b1d296f962854301f
	https://git.kernel.org/stable/c/006ad1a97ab79f0173e44d82f75340243b54024b
	https://git.kernel.org/stable/c/91895cfc28aed7c5daad13475c68588a844843d8
	https://git.kernel.org/stable/c/24530401e8001aaa637dd5007fcdc6fbc00300be