Skip to content
Fencer Intel
medium 6.5

CVE-2017-12190 json

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/…

published 8y ago modified 4mo ago also EUVD-2017-3765

cvss
6.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 45%
public exploits
0
none known

Summary

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.

Patch / fix

  • linux Debian 14, Debian 13, Debian 12 4.13.10-1

debian advisories DEBIAN-CVE-2017-12190

  • linux Ubuntu 14.04 LTS 3.13.0-142.191
  • linux Ubuntu 16.04 LTS 4.4.0-116.140
  • linux-aws Ubuntu 14.04 LTS 4.4.0-1014.14
  • linux-aws Ubuntu 16.04 LTS 4.4.0-1052.61
  • linux-gcp Ubuntu 16.04 LTS 4.13.0-1002.5
  • linux-hwe Ubuntu 16.04 LTS 4.13.0-32.35~16.04.1
  • linux-kvm Ubuntu 16.04 LTS 4.4.0-1019.24
  • linux-azure Ubuntu 16.04 LTS 4.13.0-1005.7

ubuntu advisories UBUNTU-CVE-2017-12190

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel RHEL 6 2.6.32-754.el6
  • perf RHEL 6 2.6.32-754.el6
  • python-perf RHEL 6 2.6.32-754.el6
  • kernel-kdump RHEL 6 2.6.32-754.el6
  • kernel-firmware RHEL 6 2.6.32-754.el6
  • kernel-bootwrapper RHEL 6 2.6.32-754.el6
  • kernel-abi-whitelists RHEL 6 2.6.32-754.el6
  • kernel-debuginfo-common-i686 RHEL 6 2.6.32-754.el6

red hat advisories RHSA-2018:1854RHSA-2018:0654RHSA-2018:1062RHSA-2019:1190RHSA-2019:1170RHSA-2018:0676

  • kernel-rt SLE Real Time 11 SP4 3.0.101.rt130-69.24.1
  • kernel-syms-rt SLE Real Time 11 SP4 3.0.101.rt130-69.24.1
  • kernel-rt_trace SLE Real Time 11 SP4 3.0.101.rt130-69.24.1
  • kernel-source-rt SLE Real Time 11 SP4 3.0.101.rt130-69.24.1
  • kernel-ec2 SLES 11 SP3-LTSS, SLE Point of Sale 11 SP3 3.0.101-0.47.106.22.1
  • kernel-pae SLES 11 SP3-LTSS, SLE Point of Sale 11 SP3 3.0.101-0.47.106.22.1
  • kernel-xen SLES 11 SP3-LTSS, SLE Point of Sale 11 SP3 3.0.101-0.47.106.22.1
  • kernel-syms SLES 11 SP3-LTSS, SLE Point of Sale 11 SP3 3.0.101-0.47.106.22.1

suse advisories SUSE-SU-2018:1309-1SUSE-SU-2018:1172-1SUSE-SU-2018:1080-1SUSE-SU-2018:0848-1SUSE-SU-2018:0834-1

Is CVE-2017-12190 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-12190 updated cvss 6.2

kernel: memory leak when merging buffers in SCSI IO vectors

  • Red Hat Enterprise Linux 5 kernel
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux Client (v. 7) perf 3.10.0-862.el7, kernel 3.10.0-862.el7, python-perf 3.10.0-862.el7, kernel-tools 3.10.0-862.el7, kernel-tools-libs 3.10.0-862.el7, kernel-abi-whitelists 3.10.0-862.el7, +1 more Red Hat Enterprise Linux Client Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-862.el7 Red Hat Enterprise Linux ComputeNode (v. 7) perf 3.10.0-862.el7, kernel 3.10.0-862.el7, python-perf 3.10.0-862.el7, kernel-tools 3.10.0-862.el7, kernel-tools-libs 3.10.0-862.el7, kernel-abi-whitelists 3.10.0-862.el7, +1 more
    fixed: vendor fix RHSA-2018:1062
  • Red Hat Enterprise Linux ComputeNode EUS (v. 7.4) perf 3.10.0-693.47.2.el7, kernel 3.10.0-693.47.2.el7, python-perf 3.10.0-693.47.2.el7, kernel-tools 3.10.0-693.47.2.el7, kernel-tools-libs 3.10.0-693.47.2.el7, kernel-abi-whitelists 3.10.0-693.47.2.el7, +1 more
    fixed: vendor fix RHSA-2019:1170
  • Red Hat Enterprise Linux ComputeNode Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-862.el7
    fixed: vendor fix RHSA-2018:1062
  • Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.4) kernel-debuginfo-common-x86_64 3.10.0-693.47.2.el7
    fixed: vendor fix RHSA-2019:1170
  • Red Hat Enterprise Linux Desktop (v. 6) perf 2.6.32-754.el6, kernel 2.6.32-754.el6, kernel-firmware 2.6.32-754.el6, kernel-abi-whitelists 2.6.32-754.el6, kernel-debuginfo-common-i686 2.6.32-754.el6, kernel-debuginfo-common-x86_64 2.6.32-754.el6 Red Hat Enterprise Linux Desktop Optional (v. 6) python-perf 2.6.32-754.el6, kernel-debuginfo-common-i686 2.6.32-754.el6, kernel-debuginfo-common-x86_64 2.6.32-754.el6
    fixed: vendor fix RHSA-2018:1854
  • Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) perf 4.14.0-49.el7a, kernel 4.14.0-49.el7a, kernel-alt 4.14.0-49.el7a, python-perf 4.14.0-49.el7a, kernel-kdump 4.14.0-49.el7a, kernel-tools 4.14.0-49.el7a, +6 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) kernel-debuginfo-common-aarch64 4.14.0-49.el7a, kernel-debuginfo-common-ppc64le 4.14.0-49.el7a
    fixed: vendor fix RHSA-2018:0654
  • Red Hat Enterprise Linux for Real Time (v. 7) kernel-rt 3.10.0-862.rt56.804.el7, kernel-rt-trace 3.10.0-862.rt56.804.el7, kernel-rt-debuginfo-common-x86_64 3.10.0-862.rt56.804.el7 Red Hat Enterprise Linux for Real Time for NFV (v. 7) kernel-rt 3.10.0-862.rt56.804.el7, kernel-rt-kvm 3.10.0-862.rt56.804.el7, kernel-rt-trace 3.10.0-862.rt56.804.el7, kernel-rt-debug-kvm 3.10.0-862.rt56.804.el7, kernel-rt-trace-kvm 3.10.0-862.rt56.804.el7, kernel-rt-debuginfo-common-x86_64 3.10.0-862.rt56.804.el7
    fixed: vendor fix RHSA-2018:0676
show 11 more
  • Red Hat Enterprise Linux HPC Node (v. 6) perf 2.6.32-754.el6, kernel 2.6.32-754.el6, kernel-firmware 2.6.32-754.el6, kernel-abi-whitelists 2.6.32-754.el6, kernel-debuginfo-common-i686 2.6.32-754.el6, kernel-debuginfo-common-x86_64 2.6.32-754.el6 Red Hat Enterprise Linux HPC Node Optional (v. 6) python-perf 2.6.32-754.el6, kernel-debuginfo-common-x86_64 2.6.32-754.el6 Red Hat Enterprise Linux Server (v. 6) perf 2.6.32-754.el6, kernel 2.6.32-754.el6, kernel-kdump 2.6.32-754.el6, kernel-firmware 2.6.32-754.el6, kernel-bootwrapper 2.6.32-754.el6, kernel-abi-whitelists 2.6.32-754.el6, +4 more
    fixed: vendor fix RHSA-2018:1854
  • Red Hat Enterprise Linux Server (v. 7) perf 3.10.0-862.el7, kernel 3.10.0-862.el7, python-perf 3.10.0-862.el7, kernel-kdump 3.10.0-862.el7, kernel-tools 3.10.0-862.el7, kernel-tools-libs 3.10.0-862.el7, +6 more
    fixed: vendor fix RHSA-2018:1062
  • Red Hat Enterprise Linux Server EUS (v. 7.4) perf 3.10.0-693.47.2.el7, kernel 3.10.0-693.47.2.el7, python-perf 3.10.0-693.47.2.el7, kernel-kdump 3.10.0-693.47.2.el7, kernel-tools 3.10.0-693.47.2.el7, kernel-tools-libs 3.10.0-693.47.2.el7, +6 more
    fixed: vendor fix RHSA-2019:1170
  • Red Hat Enterprise Linux Server Optional (v. 6) python-perf 2.6.32-754.el6, kernel-debuginfo-common-i686 2.6.32-754.el6, kernel-debuginfo-common-ppc64 2.6.32-754.el6, kernel-debuginfo-common-s390x 2.6.32-754.el6, kernel-debuginfo-common-x86_64 2.6.32-754.el6
    fixed: vendor fix RHSA-2018:1854
  • Red Hat Enterprise Linux Server Optional (v. 7) kernel-debuginfo-common-ppc64 3.10.0-862.el7, kernel-debuginfo-common-x86_64 3.10.0-862.el7, kernel-debuginfo-common-ppc64le 3.10.0-862.el7
    fixed: vendor fix RHSA-2018:1062
  • Red Hat Enterprise Linux Server Optional EUS (v. 7.4) kernel-debuginfo-common-ppc64 3.10.0-693.47.2.el7, kernel-debuginfo-common-x86_64 3.10.0-693.47.2.el7, kernel-debuginfo-common-ppc64le 3.10.0-693.47.2.el7
    fixed: vendor fix RHSA-2019:1170
  • Red Hat Enterprise Linux Workstation (v. 6) perf 2.6.32-754.el6, kernel 2.6.32-754.el6, kernel-firmware 2.6.32-754.el6, kernel-abi-whitelists 2.6.32-754.el6, kernel-debuginfo-common-i686 2.6.32-754.el6, kernel-debuginfo-common-x86_64 2.6.32-754.el6
    fixed: vendor fix RHSA-2018:1854
  • Red Hat Enterprise Linux Workstation (v. 7) perf 3.10.0-862.el7, kernel 3.10.0-862.el7, python-perf 3.10.0-862.el7, kernel-tools 3.10.0-862.el7, kernel-tools-libs 3.10.0-862.el7, kernel-abi-whitelists 3.10.0-862.el7, +1 more
    fixed: vendor fix RHSA-2018:1062
  • Red Hat Enterprise Linux Workstation Optional (v. 6) python-perf 2.6.32-754.el6, kernel-debuginfo-common-i686 2.6.32-754.el6, kernel-debuginfo-common-x86_64 2.6.32-754.el6
    fixed: vendor fix RHSA-2018:1854
  • Red Hat Enterprise Linux Workstation Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-862.el7
    fixed: vendor fix RHSA-2018:1062
  • Red Hat MRG Realtime for RHEL 6 Server v.2 kernel-rt 3.10.0-693.47.2.rt56.641.el6rt, kernel-rt-trace 3.10.0-693.47.2.rt56.641.el6rt, kernel-rt-vanilla 3.10.0-693.47.2.rt56.641.el6rt, kernel-rt-firmware 3.10.0-693.47.2.rt56.641.el6rt, kernel-rt-debuginfo-common-x86_64 3.10.0-693.47.2.rt56.641.el6rt
    fixed: vendor fix RHSA-2019:1190

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.53% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 6.5 CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
NVD 2.0 4.9 AV:L/AC:L/Au:N/C:N/I:N/A:C

Affected products

  • n/a Linux kernel through v4.14-rc5

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-772 Missing Release of Resource after Effective Lifetime
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.