Skip to contentSkip to conversation

CVE-2026-93146: time/namespace: Validate nanosecond field in proc_timens_set_offset()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

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

time/namespace: Validate nanosecond field in proc_timens_set_offset()

The function validates tv_sec to be within [-KTIME_SEC_MAX, KTIME_SEC_MAX] but never validates that tv_nsec is within the valid range of [0, NSEC_PER_SEC-1] before using it in timespec64_add().

timespec64_add() expects both timespec64 structures to have normalized values with tv_nsec in the range [0, 999999999]. If off->val.tv_nsec contains invalid values (negative or >= NSEC_PER_SEC), it could lead to incorrect calculations or unexpected behavior.

Add validation to ensure tv_nsec is within the valid range before performing the addition.

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

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

	Issue introduced in 5.6 with commit 04a8682a71becdb639ec9c0d82b315a2baef7a5d and fixed in 6.18.52 with commit db667d2970c756cc7b483f45f272440f845a665b
	Issue introduced in 5.6 with commit 04a8682a71becdb639ec9c0d82b315a2baef7a5d and fixed in 7.2.6 with commit 1f0c3c0c36c7aedf55a60d9c71c4bd258b8937ce
	Issue introduced in 5.6 with commit 04a8682a71becdb639ec9c0d82b315a2baef7a5d and fixed in 7.3-rc1 with commit 06aba58e58492d2b8eae059274caed29025ea96e

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

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:
kernel/time/namespace.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/db667d2970c756cc7b483f45f272440f845a665b
	https://git.kernel.org/stable/c/1f0c3c0c36c7aedf55a60d9c71c4bd258b8937ce
	https://git.kernel.org/stable/c/06aba58e58492d2b8eae059274caed29025ea96e