CVE-2024-26778

fbdev: savage: Error out if pixclock equals zero

State
Published
Severity
Not scored
Published
Apr 3, 2024
Updated
May 11, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

Description

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

fbdev: savage: Error out if pixclock equals zero

The userspace program could pass any values to the driver through ioctl() interface. If the driver doesn't check the value of pixclock, it may cause divide-by-zero error.

Although pixclock is checked in savagefb_decode_var(), but it is not checked properly in savagefb_probe(). Fix this by checking whether pixclock is zero in the function savagefb_check_var() before info->var.pixclock is used as the divisor.

This is similar to CVE-2022-3061 in i740fb which was fixed by commit 15cf0b8.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 224453de8505aede1890f007be973925a3edf6a1Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 84dce0f6a4cc5b7bfd7242ef9290db8ac1dd77ffAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 512ee6d6041e007ef5bf200c6e388e172a2c5b24Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8c54acf33e5adaad6374bf3ec1e3aff0591cc8e1Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 070398d32c5f3ab0e890374904ad94551c76aec4Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before bc3c2e58d73b28b9a8789fca84778ee165a72d13Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before a9ca4e80d23474f90841251f4ac0d941fa337a01Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 04e5eac8f3ab2ff52fa191c187a46d4fdbc1e288Affected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 4.19.308 through 4.19.*Not affected
  • 5.4.270 through 5.4.*Not affected
  • 5.10.211 through 5.10.*Not affected
  • 5.15.150 through 5.15.*Not affected
  • 6.1.80 through 6.1.*Not affected
  • 6.6.19 through 6.6.*Not affected
  • 6.7.7 through 6.7.*Not affected
  • 6.8 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.