timers/itimer: Zero-init old itimerval before copy to userspace
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.109, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: timers/itimer: Zero-init old itimerval before copy to userspace On native sparc64, struct __kernel_old_timeval contains a four-byte hole after tv_usec because tv_sec is 64-bit while __kernel_suseconds_t is 32-bit. put_itimerval() fills only the named fields in a stack-allocated __kernel_old_itimerval and copies the entire object to userspace, so getitimer() can expose the two padding holes. Zero-initialize the aggregate before assigning the fields so implicit padding is deterministic before it crosses the user/kernel boundary.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 6d4b937251386d9c6f968e7802f0cb16a8523772; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 4ea70146ab9376092297eb8b622ef1792797f2cf; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in a17b345daff46fec4af9f1ecbdf350208016dd15; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in bdfda99c5763822a9a888e8af0ad7d9312ffcfe2; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 4c66719dd1e4023c5e3f7d050f1bbefec3dfbeb4; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 2bf5e8f7c9bf4ad3be343a9a6e3e50a34264d25e; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 00ef529a5402f41eb1d227916437e237450719f9; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 18c7d85864e554adc8fad1e8d2e9d2cb6c3911c8
- Linux Linux
2.6.12
- KernelLinux
From 2.6.12 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.109; From 6.13.0 · fixed in 6.18.50; From 6.19.0 · fixed in 7.2.4
References 8
git.kernel.org
- stable/c/6d4b937251386d9c6f968e7802f0cb16a8523772
- stable/c/4ea70146ab9376092297eb8b622ef1792797f2cf
- stable/c/a17b345daff46fec4af9f1ecbdf350208016dd15
- stable/c/bdfda99c5763822a9a888e8af0ad7d9312ffcfe2
- stable/c/4c66719dd1e4023c5e3f7d050f1bbefec3dfbeb4
- stable/c/2bf5e8f7c9bf4ad3be343a9a6e3e50a34264d25e
- stable/c/00ef529a5402f41eb1d227916437e237450719f9
- stable/c/18c7d85864e554adc8fad1e8d2e9d2cb6c3911c8