speakup: keyhelp: guard letter_offsets possible out-of-range indexing
- 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.110, 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: speakup: keyhelp: guard letter_offsets possible out-of-range indexing help_init() builds letter_offsets[] by using the first byte of each function name as an index via `(start & 31) - 1`. If function_names are overridden from sysfs (root) with a name starting outside [a–z], the index underflows or exceeds the array, leading to OOB write. Function names can be overridden with the following commands as root: modprobe speakup_soft echo "0 _bad" > /sys/accessibility/speakup/i18n/function_names # then press Insert+2 on /dev/tty This fix checks the first letter in help_init(), and if it is not in the [a–z] range the function returns an error to the caller. Eventually this error is propagated to drivers/accessibility/speakup/main.c:2217, which causes a bleep sound.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From c6e3fd22cd538365bfeb82997d5b89562e077d42 · fixed in fd339b9ef0accb2c24a5285df842552ebf5eb146; From c6e3fd22cd538365bfeb82997d5b89562e077d42 · fixed in 900cd6e5ef46bd15153762fb26bb03f874fccc52; From c6e3fd22cd538365bfeb82997d5b89562e077d42 · fixed in 6b39969c724d39b6062efa354dc2d38442bfd021; From c6e3fd22cd538365bfeb82997d5b89562e077d42 · fixed in 2e91ab73f9beb659f581e2a6a09f79ace1140905; From c6e3fd22cd538365bfeb82997d5b89562e077d42 · fixed in d7deb90c4cd086cb111f0ecc9da021218fbde1b0; From c6e3fd22cd538365bfeb82997d5b89562e077d42 · fixed in 5310334762c3f08f51dc2414344dd47492c07d1d; From c6e3fd22cd538365bfeb82997d5b89562e077d42 · fixed in ca4489b3e54666a7cac7294e71a3cf64e5e95286; From c6e3fd22cd538365bfeb82997d5b89562e077d42 · fixed in 6a19ad4d68c95185308cd9e5d169b10a2cf236c8
- Linux Linux
2.6.37
- KernelLinux
From 2.6.37 · 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.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/fd339b9ef0accb2c24a5285df842552ebf5eb146
- stable/c/900cd6e5ef46bd15153762fb26bb03f874fccc52
- stable/c/6b39969c724d39b6062efa354dc2d38442bfd021
- stable/c/2e91ab73f9beb659f581e2a6a09f79ace1140905
- stable/c/d7deb90c4cd086cb111f0ecc9da021218fbde1b0
- stable/c/5310334762c3f08f51dc2414344dd47492c07d1d
- stable/c/ca4489b3e54666a7cac7294e71a3cf64e5e95286
- stable/c/6a19ad4d68c95185308cd9e5d169b10a2cf236c8