Out-of-Bounds Affecting torvalds/linux package, versions [,4.13.8)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.05% (17th 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-3006615
  • published26 Jan 2022
  • disclosed22 Nov 2017
  • creditUnknown

Introduced: 22 Nov 2017

CVE-2017-12190  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 4.13.8 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-Bounds. The bio_map_user_iov and bio_unmap_user functions in block/bio.c in the Linux kernel before 4.13.8 do unbalanced refcounting when a SCSI I/O vector has small consecutive buffers belonging to the same page. The bio_add_pc_page function merges them into one, but the page reference is never dropped. This causes a memory leak and possible system lockup (exploitable against the host OS by a guest OS user, if a SCSI disk is passed through to a virtual machine) due to an out-of-memory condition.

CVSS Base Scores

version 3.1