kernel: rds_message_alloc_sgs() function doesn't validate value used during DMA page allocation causes heap out-of-bounds write
Published Jan 11, 2018
7.8
HIGHCVSS 3.1
EPSS 0.45%
Description
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).
Affected products
No data.
Configuration 1
- < 3.2.99
- ≥ 3.3 · < 3.16.54
- ≥ 3.17 · < 3.18.92
- ≥ 3.19 · < 4.1.50
- ≥ 4.2 · < 4.4.112
- ≥ 4.5 · < 4.9.77
- ≥ 4.10 · < 4.14.44
Configuration 2
- 7.0
- 8.0
Configuration 3
- 12.04
- 14.04
- 16.04
- 17.10
No data.
Red Hat Enterprise MRG 2
kernel-rt-1:3.10.0-693.21.1.rt56.607.el6rt
Fixed · RHSA-2018:0470
Red Hat Enterprise Linux 5
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Will not fix
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-alt
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise MRG 2 | kernel-rt-1:3.10.0-693.21.1.rt56.607.el6rt | Fixed | RHSA-2018:0470 |
| Red Hat Enterprise Linux 5 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-alt | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
AV:L/AC:L/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 0.45% (0.00452) | 37.06th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.43% (0.00428) | 33.91th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.08% (0.00083) | 21.89th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.06% (0.00064) | 30.08th | v3 (v2023.03.01) |
| Jun 21, 2024 | 0.06% (0.00064) | 28.17th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.06% (0.00064) | 26.16th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.55% (0.01547) | 74.98th | v2 (v2022.01.01) |
| Feb 22, 2023 | 1.55% (0.01547) | 74.72th | v2 (v2022.01.01) |
| Dec 30, 2022 | 5.84% (0.05839) | 90.05th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.55% (0.01547) | 72.92th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.55% (0.01547) | 51.82th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.28% (0.03281) | 66.54th | v1 |
| Jan 6, 2022 | 3.28% (0.03281) | 66.22th | v1 |
| Sep 1, 2021 | 3.28% (0.03281) | 81.60th | v1 |
| Apr 14, 2021 | 3.28% (0.03281) | 0.00th | v1 |
References (19)
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c095508770aebf1b9218e77026e48345d719b17c x_refsource_CONFIRMPatchVendor Advisory
- http://www.securityfocus.com/bid/102507 vdb-entryx_refsource_BIDBroken LinkThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:0470 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-5332 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1533890 Issue Tracking
- https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=60daca9efbb3e4109ebc1f7069543e5573fc124e x_refsource_CONFIRMMailing ListPatchVendor Advisory
- https://github.com/torvalds/linux/commit/c095508770aebf1b9218e77026e48345d719b17c x_refsource_CONFIRMPatchVendor Advisory
- https://lists.debian.org/debian-lts-announce/2018/05/msg00000.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-5332
- https://usn.ubuntu.com/3617-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3617-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3617-3/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3619-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3619-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3620-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3620-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3632-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-5332
- https://www.debian.org/security/2018/dsa-4187 vendor-advisoryx_refsource_DEBIANThird Party Advisory
Change history (0)
No recorded changes yet.