CVE-2026-68158

libceph: Fix multiplication overflow in decode_new_up_state_weight()

State
Published
Severity
9.8 Critical
Published
Aug 10, 2026
Updated
Oct 19, 2026
Reserved
Jul 30, 2026

Read the record on cve.org

Description

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

libceph: Fix multiplication overflow in decode_new_up_state_weight()

If a message of type CEPH_MSG_OSD_MAP contains a (maliciously) corrupted osdmap, out-of-bounds memory accesses may occur in decode_new_up_state_weight(). This happens because the bounds check for the new_state part is based on calculating its length depending on a len value read from the incoming message. This calculation may overflow leading to an incorrect bounds check. Subsequently, out-of-bounds reads may occur when decoding this part.

This patch switches the multiplication to use check_mul_overflow() to abort processing the osdmap if an overflow occurred. Therefore, osdmaps/messages containing large values for len that result in a multiplication overflow are treated as invalid.

[ idryomov: rename new_state_len -> new_state_item_size, formatting ]

Scores

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

Weaknesses

  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
LinuxLinux
  • 930c532869774ebf8af9efe9484c597f896a7d46 to before 2ceee3b77b83052648c40fef965f836fd7699d26Affected
  • 930c532869774ebf8af9efe9484c597f896a7d46 to before e4473751cc37db41f3f7da25d64a23e0c74570f1Affected
  • 930c532869774ebf8af9efe9484c597f896a7d46 to before f6961070c326bd158c38fa48756cde2bd78c4aaaAffected
  • 930c532869774ebf8af9efe9484c597f896a7d46 to before 05c90e059269f087becfcce23348496085835c29Affected
  • 930c532869774ebf8af9efe9484c597f896a7d46 to before 143ba49ead77ec483c0326f8aaad8649874e99c4Affected
  • 930c532869774ebf8af9efe9484c597f896a7d46 to before 1732d89dfcd74f6fde9ce70900d316c4a151c153Affected
  • 930c532869774ebf8af9efe9484c597f896a7d46 to before bee4b5b53e7bff0467fd916cc44c9b190733c6bdAffected
  • 930c532869774ebf8af9efe9484c597f896a7d46 to before 98917a499ec7064c14fc56d180a4fd636fc2784cAffected
  • 1196c36fd53c3b1615eb02f986cb727b1dfc1047Affected
  • bbc3aa6b0e6050b2b2e04a08dd4d6423d576b196Affected
  • 6b96b2d473701b45df3fea8dd9796b6ec39e6d54Affected
  • 7405d73cea0d0e6c541f5c534078feeb46188844Affected
  • 8777c9f654637d56f4c4ca54eb1bc7c609b70085Affected
  • 6831c98ce0b8a3e88db64aa224372effd0dcc694Affected
  • 032951d32c13b7564dfba82758260cb7aa1149d2Affected
  • 14877928f10667a5606383885d004f7185f33718Affected
  • 3.10.103 to before 3.11Affected
  • 3.12.63 to before 3.13Affected
  • 3.14.75 to before 3.15Affected
  • 3.16.39 to before 3.17Affected
  • 3.18.39 to before 3.19Affected
  • 4.1.30 to before 4.2Affected
  • 4.4.17 to before 4.5Affected
  • 4.6.6 to before 4.7Affected
LinuxLinux
  • 4.7Affected
  • before 4.7Not affected
  • 5.10.265 through 5.10.*Not affected
  • 5.15.216 through 5.15.*Not affected
  • 6.1.183 through 6.1.*Not affected
  • 6.6.148 through 6.6.*Not affected
  • 6.12.101 through 6.12.*Not affected
  • 6.18.42 through 6.18.*Not affected
  • 7.1.6 through 7.1.*Not affected
  • 7.2 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.