rtc: dev: zero-initialize struct rtc_wkalrm to prevent information leak
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 5.0.0, < 6.1.191→ 6.1.191 ≥ 6.2.0, < 6.6.160→ 6.6.160 ≥ 6.7.0, < 6.12.113→ 6.12.113 ≥ 6.13.0, < 6.18.56→ 6.18.56 ≥ 6.19.0, < 7.2.10→ 7.2.10 |
6.1.191 6.6.160 6.12.113 6.18.56 7.2.10 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-98935 linux-lts Fix available
- Debian DEBIAN-CVE-2026-98935 linux Fix available
- Ubuntu UBUNTU-CVE-2026-98935 linux-vmware, linux-riscv-7.0, linux-riscv-6.8 +38 more Fix available
Original description The description as published by the source.
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')
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com
- web git.kernel.org