CVE-2025-68237

mtdchar: fix integer overflow in read/write ioctls

State
Published
Severity
Not scored
Published
Dec 16, 2025
Updated
May 11, 2026
Reserved
Dec 16, 2025

Read the record on cve.org

Description

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

mtdchar: fix integer overflow in read/write ioctls

The "req.start" and "req.len" variables are u64 values that come from the user at the start of the function. We mask away the high 32 bits of "req.len" so that's capped at U32_MAX but the "req.start" variable can go up to U64_MAX which means that the addition can still integer overflow.

Use check_add_overflow() to fix this bug.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 to before f37efdd97fd1ec3e0d0f1eec279c8279e28f981eAffected
  • 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 to before 457376c6fbf0c69326a9bf1f72416225f681192bAffected
  • 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 to before eb9361484814fb12f3b7544b33835ea67d7a6a97Affected
  • 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 to before 37944f4f8199cd153fef74e95ca268020162f212Affected
  • 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 to before e4185bed738da755b191aa3f2e16e8b48450e1b8Affected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 6.1.159 through 6.1.*Not affected
  • 6.6.118 through 6.6.*Not affected
  • 6.12.60 through 6.12.*Not affected
  • 6.17.10 through 6.17.*Not affected
  • 6.18 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.