CVE-2025-38685

fbdev: Fix vmalloc out-of-bounds write in fast_imageblit

State
Published
Severity
7.8 High
Published
Sep 4, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

fbdev: Fix vmalloc out-of-bounds write in fast_imageblit

This issue triggers when a userspace program does an ioctl FBIOPUT_CON2FBMAP by passing console number and frame buffer number. Ideally this maps console to frame buffer and updates the screen if console is visible.

As part of mapping it has to do resize of console according to frame buffer info. if this resize fails and returns from vc_do_resize() and continues further. At this point console and new frame buffer are mapped and sets display vars. Despite failure still it continue to proceed updating the screen at later stages where vc_data is related to previous frame buffer and frame buffer info and display vars are mapped to new frame buffer and eventully leading to out-of-bounds write in fast_imageblit(). This bheviour is excepted only when fg_console is equal to requested console which is a visible console and updates screen with invalid struct references in fbcon_putcs().

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 078e62bffca4b7e72e8f3550eb063ab981c36c7aAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 4c4d7ddaf1d43780b106bedc692679f965dc5a3aAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 27b118aebdd84161c8ff5ce49d9d536f2af10754Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before ed9b8e5016230868c8d813d9179523f729fec8c6Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 56701bf9eeb63219e378cb7fcbd066ea4eaeeb50Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before cfec17721265e72e50cc69c6004fe3475cd38df2Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before af0db3c1f898144846d4c172531a199bb3ca375dAffected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 5.15.190 through 5.15.*Not affected
  • 6.1.149 through 6.1.*Not affected
  • 6.6.103 through 6.6.*Not affected
  • 6.12.43 through 6.12.*Not affected
  • 6.15.11 through 6.15.*Not affected
  • 6.16.2 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.