cve.bz

CVE-2018-5332 Out-of-bounds Write

7.8 highEPSS 0.5%Fix available

High (7.8). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-5332 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-5332?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-5332?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-5332 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelbefore 3.2.99
linux:linux_kernelfrom 3.3 before 3.16.54
linux:linux_kernelfrom 3.17 before 3.18.92
linux:linux_kernelfrom 3.19 before 4.1.50
linux:linux_kernelfrom 4.2 before 4.4.112
linux:linux_kernelfrom 4.5 before 4.9.77
linux:linux_kernelfrom 4.10 before 4.14.44
debian:debian_linux7.0
debian:debian_linux8.0
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7linux3.2.101-1DLA-1369-1
Debian8linux3.16.56-1DSA-4187-1
Debian12, 13, 14linux4.14.17-1DEBIAN-CVE-2018-5332
Ubuntu14.04:LTSlinux3.13.0-144.193UBUNTU-CVE-2018-5332 USN-3620-1
Ubuntu14.04:LTSlinux-aws4.4.0-1016.16UBUNTU-CVE-2018-5332 USN-3619-2
Ubuntu14.04:LTSlinux-lts-xenial4.4.0-119.143~14.04.1UBUNTU-CVE-2018-5332 USN-3619-2
Ubuntu16.04:LTSlinux4.4.0-119.143UBUNTU-CVE-2018-5332 USN-3619-1
Ubuntu16.04:LTSlinux-aws4.4.0-1054.63UBUNTU-CVE-2018-5332 USN-3619-1
Ubuntu16.04:LTSlinux-azure4.13.0-1014.17UBUNTU-CVE-2018-5332 USN-3632-1
Ubuntu16.04:LTSlinux-gcp4.13.0-1012.16UBUNTU-CVE-2018-5332 USN-3617-2
Ubuntu16.04:LTSlinux-hwe4.13.0-41.46~16.04.1UBUNTU-CVE-2018-5332 USN-3617-2
Ubuntu16.04:LTSlinux-kvm4.4.0-1020.25UBUNTU-CVE-2018-5332 USN-3619-1
Ubuntu16.04:LTSlinux-oem4.13.0-1022.24UBUNTU-CVE-2018-5332 USN-3617-2
Ubuntu16.04:LTSlinux-raspi24.4.0-1086.94UBUNTU-CVE-2018-5332 USN-3619-1
Ubuntu16.04:LTSlinux-snapdragon4.4.0-1088.93UBUNTU-CVE-2018-5332 USN-3619-1
5 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_mrg:2:server:el6kernel-rt, kernel-rt-doc, kernel-rt-debug and 12 more1:3.10.0-693.21.1.rt56.607.el6rtRHSA-2018:0470
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP2, Linux Enterprise Server for Raspberry Pi 12 SP2 and 1 morekernel-syms, kernel-source, kernel-default4.4.114-92.64.1SUSE-SU-2018:0416-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise High Availability Extension 12 SP3, Linux Enterprise Server 12 SP3 and 2 morekernel-default4.4.114-94.11.3SUSE-SU-2018:0383-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3kernel-syms, kernel-source4.4.114-94.11.2SUSE-SU-2018:0383-1
SUSELinux Enterprise High Availability Extension 11 SP4drbd8.4.4-0.27.4.2SUSE-SU-2018:0555-1
SUSELinux Enterprise High Availability Extension 11 SP4, Linux Enterprise Real Time 11 SP4cluster-network1.4-2.32.4.6SUSE-SU-2018:0555-1
SUSELinux Enterprise High Availability Extension 11 SP4, Linux Enterprise Real Time 11 SP4drbd-kmp8.4.4-0.27.4.6SUSE-SU-2018:0555-1
SUSELinux Enterprise High Availability Extension 11 SP4, Linux Enterprise Real Time 11 SP4gfs22-0.24.4.6SUSE-SU-2018:0555-1
SUSELinux Enterprise High Availability Extension 11 SP4, Linux Enterprise Real Time 11 SP4ocfs21.6-0.28.5.6SUSE-SU-2018:0555-1
SUSELinux Enterprise High Availability Extension 12 SP2, Linux Enterprise Workstation Extension 12 SP2kernel-default4.4.114-92.64.1SUSE-SU-2018:0416-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP2_Update_181-3.3.2SUSE-SU-2018:0416-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_81-4.3.5SUSE-SU-2018:0383-1
SUSELinux Enterprise Module for Public Cloud 12kernel-ec23.12.61-52.125.1SUSE-SU-2018:0834-1
16 more for SUSE in the JSON and on SUSE's page.
openSUSETumbleweedkernel-source5.14.6-1.4openSUSE-SU-2024:10728-1
openSUSETumbleweedkernel-source6.6.17-1.1openSUSE-SU-2024:13704-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 6 and Red Hat Enterprise MRG 2. Future Linux kernel updates for the respective releases may address this issue.

This issue does not affect the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 5, 7, its real-time kernel, Red Hat Enterprise Linux 7 for ARM 64 and Red Hat Enterprise Linux 7 for Power 9 LE, as a code with the flaw is not built and shipped with the products listed.

ProductPackageStateAdvisory
Red Hat Enterprise MRG 2kernel-rt-1:3.10.0-693.21.1.rt56.607.el6rtFixed 2018-03-12RHSA-2018:0470
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelWill not fix
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-altNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-5332.

References

Check your stackJSON