CVE-2026-98935: rtc: dev: zero-initialize struct rtc_wkalrm to prevent information leak
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
rtc: dev: zero-initialize struct rtc_wkalrm to prevent information leak
The struct rtc_wkalrm has padding holes after the 'pending' member. When returned to userspace via the RTC_WKALRM_RD ioctl, uninitialized kernel stack data residing in these holes may be leaked.
Zero-initialize the struct at declaration to eliminate this information leak risk.
Fixes smatch warnings:
- drivers/rtc/dev.c:392 rtc_dev_ioctl() warn: check that 'alarm' doesn't leak information (struct has a hole after 'pending')
The Linux kernel CVE team has assigned CVE-2026-98935 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.0 with commit 36e14f5fdfdf7cec8887b7ff69cd9bb5051ecf62 and fixed in 6.6.160 with commit a2215eb3cbbd3d9d73cc18c08e3ef53f903443cb Issue introduced in 5.0 with commit 36e14f5fdfdf7cec8887b7ff69cd9bb5051ecf62 and fixed in 6.12.113 with commit beda3c9730ad3087d01aa1d0415c40942042ec87 Issue introduced in 5.0 with commit 36e14f5fdfdf7cec8887b7ff69cd9bb5051ecf62 and fixed in 6.18.56 with commit 00dc50cede96738dadc64b20e671186cddb8a58d Issue introduced in 5.0 with commit 36e14f5fdfdf7cec8887b7ff69cd9bb5051ecf62 and fixed in 7.2.10 with commit 2838d7bbb551861c25187dfb581ed6e7a56762e9 Issue introduced in 5.0 with commit 36e14f5fdfdf7cec8887b7ff69cd9bb5051ecf62 and fixed in 7.3 with commit 0ee5c5d804d592a8328a425b9274487d393d3a05
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-98935
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/rtc/dev.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/a2215eb3cbbd3d9d73cc18c08e3ef53f903443cb https://git.kernel.org/stable/c/beda3c9730ad3087d01aa1d0415c40942042ec87 https://git.kernel.org/stable/c/00dc50cede96738dadc64b20e671186cddb8a58d https://git.kernel.org/stable/c/2838d7bbb551861c25187dfb581ed6e7a56762e9 https://git.kernel.org/stable/c/0ee5c5d804d592a8328a425b9274487d393d3a05