Integer Overflow or Wraparound Affecting torvalds/linux package, versions [,4.17.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-TORVALDSLINUX-3006348
  • published26 Jan 2022
  • disclosed2 Jul 2018
  • creditUnknown

Introduced: 2 Jul 2018

CVE-2018-12896  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 4.17.4 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. An issue was discovered in the Linux kernel through 4.17.3. An Integer Overflow in kernel/time/posix-timers.c in the POSIX timer code is caused by the way the overrun accounting works. Depending on interval and expiry time values, the overrun can be larger than INT_MAX, but the accounting is int based. This basically makes the accounting values, which are visible to user space via timer_getoverrun(2) and siginfo::si_overrun, random. For example, a local user can cause a denial of service (signed integer overflow) via crafted mmap, futex, timer_create, and timer_settime system calls.

CVSS Base Scores

version 3.1