CVE-2018-5332 json
In the Linux kernel through 3.2, the rds_message_alloc_sgs() function does not validate a value that is used during DMA page allocation, le…
published 2018-01-11 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-17111
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
In the Linux kernel through 3.2, the rds_message_alloc_sgs() function does not validate a value that is used during DMA page allocation, leading to a heap-based out-of-bounds write (related to the rds_rdma_extra_size function in net/rds/rdma.c).
Patch / fix
- linux linux_kernel 3.2.99, 3.16.54, 3.18.92, 4.1.50, 4.4.112, 4.9.77, 4.14.44
- linux Debian 14, Debian 13, Debian 12 4.14.17-1
debian advisories DEBIAN-CVE-2018-5332
- linux Ubuntu 14.04 LTS 3.13.0-144.193
- linux Ubuntu 16.04 LTS 4.4.0-119.143
- linux-aws Ubuntu 14.04 LTS 4.4.0-1016.16
- linux-aws Ubuntu 16.04 LTS 4.4.0-1054.63
- linux-gcp Ubuntu 16.04 LTS 4.13.0-1012.16
- linux-hwe Ubuntu 16.04 LTS 4.13.0-41.46~16.04.1
- linux-kvm Ubuntu 16.04 LTS 4.4.0-1020.25
- linux-oem Ubuntu 16.04 LTS 4.13.0-1022.24
ubuntu advisories UBUNTU-CVE-2018-5332
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-rt enterprise mrg 2 1:3.10.0-693.21.1.rt56.607.el6rt
- kernel-rt-trace enterprise mrg 2 1:3.10.0-693.21.1.rt56.607.el6rt
- kernel-rt-vanilla enterprise mrg 2 1:3.10.0-693.21.1.rt56.607.el6rt
- kernel-rt-firmware enterprise mrg 2 1:3.10.0-693.21.1.rt56.607.el6rt
- kernel-rt-debuginfo-common-x86_64 enterprise mrg 2 1:3.10.0-693.21.1.rt56.607.el6rt
red hat advisories RHSA-2018:0470
- kernel-rt SLE Real Time 12 SP3 4.4.120-3.8.1
- kernel-syms-rt SLE Real Time 12 SP3 4.4.120-3.8.1
- kernel-rt_debug SLE Real Time 12 SP3 4.4.120-3.8.1
- kernel-source-rt SLE Real Time 12 SP3 4.4.120-3.8.1
- kernel-ec2 SLE Module for Public Cloud 12 3.12.74-60.64.85.1
- kernel-xen SLES for SAP 12 SP1, SLES 12 SP1-LTSS, OpenStack Cloud 6 3.12.74-60.64.85.1
- kernel-syms SLES for SAP 12 SP1, SLES 12 SP1-LTSS, OpenStack Cloud 6 3.12.74-60.64.85.1
- kernel-source SLES for SAP 12 SP1, SLES 12 SP1-LTSS, OpenStack Cloud 6 3.12.74-60.64.85.1
suse advisories SUSE-SU-2018:0986-1SUSE-SU-2018:0848-1SUSE-SU-2018:0841-1SUSE-SU-2018:0834-1SUSE-SU-2018:0660-1SUSE-SU-2018:0555-1
- kernel-source openSUSE Tumbleweed 5.14.6-1.4
- kernel-source openSUSE Tumbleweed 6.6.17-1.1
opensuse advisories openSUSE-SU-2024:10728-1openSUSE-SU-2024:13704-1
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-2018-5332 updated cvss 5.5
kernel: rds_message_alloc_sgs() function doesn't validate value used during DMA page allocation causes heap out-of-bounds write
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Will not fix”
-
Red Hat MRG Realtime for RHEL 6 Server v.2 kernel-rt 3.10.0-693.21.1.rt56.607.el6rt, kernel-rt-trace 3.10.0-693.21.1.rt56.607.el6rt, kernel-rt-vanilla 3.10.0-693.21.1.rt56.607.el6rt, kernel-rt-firmware 3.10.0-693.21.1.rt56.607.el6rt, kernel-rt-debuginfo-common-x86_64 3.10.0-693.21.1.rt56.607.el6rtfixed: vendor fix RHSA-2018:0470
-
Red Hat Enterprise Linux 5 kernel Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, kernel-alt, python-perf, +9 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-core, kernel-tools, python3-perf, +17 morenot affected: vulnerable code not present
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.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
- Technology feeds
References
-
git.kernel.org
/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c095508770aebf1b9218e77026e48345d719b17c
patch, vendor-advisory
-
github.com
/torvalds/linux/commit/c095508770aebf1b9218e77026e48345d719b17c
patch, vendor-advisory
-
git.kernel.org
/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=60daca9efbb3e4109ebc1f7069543e5573fc124e
mailing-list, patch, vendor-advisory
-
debian.org
/security/2018/dsa-4187
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3617-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3619-2/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3617-3/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3632-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3620-2/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0470
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3617-2/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3620-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3619-1/
vendor-advisory, third-party-advisory
-
securityfocus.com
/bid/102507
vdb-entry, broken-link, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/05/msg00000.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2018-5332
- NVD CVE-2018-5332
Fencer Vulns 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.