{"id":"CVE-2025-40322","summary":"fbdev: bitblit: bound-check glyph index in bit_putcs*","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: bitblit: bound-check glyph index in bit_putcs*\n\nbit_putcs_aligned()/unaligned() derived the glyph pointer from the\ncharacter value masked by 0xff/0x1ff, which may exceed the actual font's\nglyph count and read past the end of the built-in font array.\nClamp the index to the actual glyph count before computing the address.\n\nThis fixes a global out-of-bounds read reported by syzbot.","modified":"2026-03-31T17:29:27.549861Z","published":"2025-12-08T00:46:49.773Z","related":["ALSA-2026:1661","ALSA-2026:1662","ALSA-2026:2282","ALSA-2026:2722","MGASA-2026-0017","MGASA-2026-0018","SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:0316-1","SUSE-SU-2026:20207-1","SUSE-SU-2026:20220-1","SUSE-SU-2026:20228-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1","openSUSE-SU-2026:20145-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40322.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0998a6cb232674408a03e8561dc15aa266b2f53b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/18c4ef4e765a798b47980555ed665d78b71aeadf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/901f44227072be60812fe8083e83e1533c04eed1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9ba1a7802ca9a2590cef95b253e6526f4364477f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a10cede006f9614b465cf25609a8753efbfd45cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c12003bf91fdff381c55ef54fef3e961a5af2545"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db5c9a162d2f42bcc842b76b3d935dcc050a0eec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/efaf89a75a29b2d179bf4fe63ca62852e93ad620"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40322.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40322"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"a10cede006f9614b465cf25609a8753efbfd45cc"},{"fixed":"0998a6cb232674408a03e8561dc15aa266b2f53b"},{"fixed":"db5c9a162d2f42bcc842b76b3d935dcc050a0eec"},{"fixed":"c12003bf91fdff381c55ef54fef3e961a5af2545"},{"fixed":"9ba1a7802ca9a2590cef95b253e6526f4364477f"},{"fixed":"901f44227072be60812fe8083e83e1533c04eed1"},{"fixed":"efaf89a75a29b2d179bf4fe63ca62852e93ad620"},{"fixed":"18c4ef4e765a798b47980555ed665d78b71aeadf"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40322.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.12"},{"fixed":"5.4.302"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.247"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.197"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.159"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.58"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40322.json"}}],"schema_version":"1.7.5"}