CVE-2024-56739

rtc: check if __rtc_read_time was successful in rtc_timer_do_work()

State
Published
Severity
5.5 Medium
Published
Dec 29, 2024
Updated
May 11, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

Description

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

rtc: check if __rtc_read_time was successful in rtc_timer_do_work()

If the __rtc_read_time call fails,, the struct rtc_time tm; may contain uninitialized data, or an illegal date/time read from the RTC hardware.

When calling rtc_tm_to_ktime later, the result may be a very large value (possibly KTIME_MAX). If there are periodic timers in rtc->timerqueue, they will continually expire, may causing kernel softlockup.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-908 Use of Uninitialized Resource

Affected Products

ProductVersions
LinuxLinux
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before 39ad0a1ae17b54509cd9e93dcd8cec16e7c12d3fAffected
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before 44b3257ff705d63d5f00ef8ed314a0eeb7ec37f2Affected
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before 0d68e8514d9040108ff7d1b37ca71096674b6efeAffected
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before 246f621d363988e7040f4546d20203dc713fa3e1Affected
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before fde56535505dde3336df438e949ef4742b6d6d6eAffected
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before dd4b1cbcc916fad5d10c2662b62def9f05e453d4Affected
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before a1f0b4af90cc18b10261ecde56c6a56b22c75bd1Affected
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before e77bce0a8c3989b4173c36f4195122bca8f4a3e1Affected
  • 6610e0893b8bc6f59b14fed7f089c5997f035f88 to before e8ba8a2bc4f60a1065f23d6a0e7cbea945a0f40dAffected
LinuxLinux
  • 2.6.38Affected
  • before 2.6.38Not affected
  • 4.19.325 through 4.19.*Not affected
  • 5.4.287 through 5.4.*Not affected
  • 5.10.231 through 5.10.*Not affected
  • 5.15.174 through 5.15.*Not affected
  • 6.1.120 through 6.1.*Not affected
  • 6.6.64 through 6.6.*Not affected
  • 6.11.11 through 6.11.*Not affected
  • 6.12.2 through 6.12.*Not affected
  • 6.13 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.