Every CVE Search/ Get API key

CVE-2018-6485

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU...

9.8 CriticalFix available

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

4.69%Up 2.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption.

Record
CVE-2018-6485
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-190, CWE-787
Updated
2026-11-02
CVE List No score

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption.

Record
CVE-2018-6485
Updated
2026-11-02
EUVDEUVD-2018-18241 No score

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption.

Record
EUVD-2018-18241
Updated
2026-11-03
GitHub AdvisoriesGHSA-m775-r988-g6m4 9.8

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU...

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption.

Record
GHSA-m775-r988-g6m4
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSV 9.8

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption.

Record
CVE-2018-6485
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-6485 9.8

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption.

Record
DEBIAN-CVE-2018-6485
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 10 moreShow less
OSVRHSA-2018:3092 7.8

Red Hat Security Advisory: glibc security, bug fix, and enhancement update

Record
RHSA-2018:3092
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-6485 9.8

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption.

Record
UBUNTU-CVE-2018-6485
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVCLSA-2026-1776605836 No score

glibc: Fix of 3 CVEs

  • CVE-2018-6485: fix integer overflows in memalign and malloc
  • CVE-2018-1000001: fix realpath buffer underflow via getcwd
  • CVE-2018-19591: fix if_nametoindex descriptor leak
Record
CLSA-2026-1776605836
Updated
2026-11-02
OSVCLSA-2026-1776606103 No score

glibc: Fix of 3 CVEs

  • CVE-2018-6485: fix integer overflows in memalign and malloc
  • CVE-2018-1000001: fix realpath buffer underflow via getcwd
  • CVE-2018-19591: fix if_nametoindex descriptor leak
Record
CLSA-2026-1776606103
Updated
2026-11-02
OSVMGASA-2018-0159 No score

Updated glibc packages fix security vulnerability

An integer overflow in the implementation of the posix_memalign in memalign functions in the GNU C Library (aka glibc or libc6) 2.26 and earlier could cause these functions to return a pointer to a heap area that is too small, potentially leading to heap corruption (CVE-2018-6485, CVE-2018-6551).

Record
MGASA-2018-0159
Updated
2026-11-02
OSVopenSUSE-SU-2024:10792-1 No score

glibc-2.34-1.2 on GA media

These are all security issues fixed in the glibc-2.34-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10792-1
Updated
2026-11-02
OSVSUSE-SU-2018:0451-1 No score

Security update for glibc

This update for glibc fixes the following issues:

Security issues fixed:

  • CVE-2017-8804: Fix memory leak after deserialization failure in xdr_bytes, xdr_string (bsc#1037930)
  • CVE-2017-12132: Reduce EDNS payload size to 1200 bytes (bsc#1051791)
  • CVE-2018-6485,CVE-2018-6551: Fix integer overflows in internal memalign and malloc functions (bsc#1079036)
  • CVE-2018-1000001: Avoid underflow of malloced area (bsc#1074293)

Non security bugs fixed:

  • Release read lock after resetting timeout (bsc#1073990)
Record
SUSE-SU-2018:0451-1
Updated
2026-11-02
OSVSUSE-SU-2018:0565-1 No score

Security update for glibc

This update for glibc fixes the following issues:

Security issues:

  • CVE-2017-8804: Fix memory leak after deserialization failure in xdr_bytes, xdr_string (bsc#1037930)
  • CVE-2017-12132: Reduce EDNS payload size to 1200 bytes (bsc#1051791)
  • CVE-2018-6485,CVE-2018-6551: Fix integer overflows in internal memalign and malloc functions (bsc#1079036)
  • CVE-2018-1000001: Avoid underflow of malloced area in realpath (bsc#1074293)

Also a non security issue was fixed:

  • Do not fail if one of the two responses to AF_UNSPEC fails (bsc#978209)
Record
SUSE-SU-2018:0565-1
Updated
2026-11-02
OSVUSN-4218-1 No score

eglibc vulnerability

Jakub Wilk discovered that GNU C Library incorrectly handled certain memory alignments. An attacker could possibly use this issue to execute arbitrary code or cause a crash.

Record
USN-4218-1
Updated
2026-11-02
OSVUSN-4416-1 No score

glibc vulnerabilities

Florian Weimer discovered that the GNU C Library incorrectly handled certain memory operations. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 16.04 LTS. (CVE-2017-12133)

It was discovered that the GNU C Library incorrectly handled certain SSE2-optimized memmove operations. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 16.04 LTS. (CVE-2017-18269)

It was discovered that the GNU C Library incorrectly handled certain pathname operations. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-11236)

It was discovered that the GNU C Library incorrectly handled certain AVX-512-optimized mempcpy operations. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-11237)

It was discovered that the GNU C Library incorrectly handled certain hostname loookups. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-19591)

Jakub Wilk discovered that the GNU C Library incorrectly handled certain memalign functions. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 16.04 LTS. (CVE-2018-6485)

It was discovered that the GNU C Library incorrectly ignored the LD_PREFER_MAP_32BIT_EXEC environment variable after security transitions. A local attacker could use this issue to bypass ASLR restrictions. (CVE-2019-19126)

It was discovered that the GNU C Library incorrectly handled certain regular expressions. A remote attacker could possibly use this issue to cause the GNU C Library to crash, resulting in a denial of service. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2019-9169)

It was discovered that the GNU C Library incorrectly handled certain bit patterns. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2020-10029)

It was discovered that the GNU C Library incorrectly handled certain signal trampolines on PowerPC. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2020-1751)

It was discovered that the GNU C Library incorrectly handled tilde expansion. A remote attacker could use this issue to cause the GNU C Library to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2020-1752)

Record
USN-4416-1
Updated
2026-11-02

Affected products

Show 3 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
glibc
TuxCare:CentOS:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-common
TuxCare:CentOS:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-devel
TuxCare:CentOS:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-headers
TuxCare:CentOS:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-static
TuxCare:CentOS:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-utils
TuxCare:CentOS:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
nscd
TuxCare:CentOS:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-common
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-devel
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
Show 64 moreShow less
Affected packages
PackageAffectedFixed
glibc-headers
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-static
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc-utils
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
nscd
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.12-2.215.el6.tuxcare.els12
2.12-2.215.el6.tuxcare.els12
glibc
Debian:12
before 2.27-1
2.27-1
glibc
Debian:13
before 2.27-1
2.27-1
glibc
Debian:14
before 2.27-1
2.27-1
glibc
Mageia:6
From an advisory covering 2 CVEs
before 2.22-28.mga6
2.22-28.mga6
glibc
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-common
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-debuginfo
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-debuginfo-common
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-devel
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-headers
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-utils
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
nscd
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-static
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-common
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-debuginfo
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-debuginfo-common
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-devel
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-headers
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-utils
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
nscd
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-static
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-common
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-debuginfo
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-debuginfo-common
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-devel
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-headers
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-utils
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
nscd
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-static
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-common
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-debuginfo
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-debuginfo-common
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-devel
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-headers
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-utils
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
nscd
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc-static
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 0:2.17-260.el7
0:2.17-260.el7
glibc
SUSE:Linux Enterprise Desktop 12 SP2
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Software Development Kit 12 SP2
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Server 12 SP2
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 5 CVEs
before 2.22-62.6.2
2.22-62.6.2
glibc
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 5 CVEs
before 2.11.3-17.110.6.2
2.11.3-17.110.6.2
glibc
SUSE:Linux Enterprise Point of Sale 11 SP3
From an advisory covering 5 CVEs
before 2.11.3-17.110.6.2
2.11.3-17.110.6.2
glibc
SUSE:Linux Enterprise Server 11 SP3-LTSS
From an advisory covering 5 CVEs
before 2.11.3-17.110.6.2
2.11.3-17.110.6.2
glibc
SUSE:Linux Enterprise Server 11 SP3-TERADATA
From an advisory covering 5 CVEs
before 2.11.3-17.110.6.2
2.11.3-17.110.6.2
glibc
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 5 CVEs
before 2.11.3-17.110.6.2
2.11.3-17.110.6.2
glibc
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 5 CVEs
before 2.11.3-17.110.6.2
2.11.3-17.110.6.2
eglibc
Ubuntu:Pro:14.04:LTS
before 2.19-0ubuntu6.15+esm1, plus listed versions
2.17-93ubuntu42.18-0ubuntu12.18-0ubuntu22.18-0ubuntu42.18-0ubuntu5
Show 20 moreShow less
2.18-0ubuntu62.18-0ubuntu72.19-0ubuntu22.19-0ubuntu32.19-0ubuntu42.19-0ubuntu52.19-0ubuntu62.19-0ubuntu6.12.19-0ubuntu6.32.19-0ubuntu6.42.19-0ubuntu6.52.19-0ubuntu6.62.19-0ubuntu6.72.19-0ubuntu6.82.19-0ubuntu6.92.19-0ubuntu6.102.19-0ubuntu6.112.19-0ubuntu6.132.19-0ubuntu6.142.19-0ubuntu6.15
2.19-0ubuntu6.15+esm1
glibc
Ubuntu:16.04:LTS
before 2.23-0ubuntu11.2, plus listed versions
2.21-0ubuntu42.21-0ubuntu52.21-0ubuntu62.23-0ubuntu12.23-0ubuntu2
Show 8 moreShow less
2.23-0ubuntu32.23-0ubuntu42.23-0ubuntu52.23-0ubuntu62.23-0ubuntu72.23-0ubuntu92.23-0ubuntu102.23-0ubuntu11
2.23-0ubuntu11.2
glibc
Ubuntu:16.04:LTS
From an advisory covering 11 CVEs
before 2.23-0ubuntu11.2, plus listed versions
2.21-0ubuntu42.21-0ubuntu52.21-0ubuntu62.23-0ubuntu12.23-0ubuntu2
Show 8 moreShow less
2.23-0ubuntu32.23-0ubuntu42.23-0ubuntu52.23-0ubuntu62.23-0ubuntu72.23-0ubuntu92.23-0ubuntu102.23-0ubuntu11
2.23-0ubuntu11.2
glibc
Ubuntu:18.04:LTS
From an advisory covering 11 CVEs
before 2.27-3ubuntu1.2, plus listed versions
2.26-0ubuntu22.26-0ubuntu2.12.27-0ubuntu22.27-0ubuntu32.27-3ubuntu1
2.27-3ubuntu1.2
glibc
openSUSE:Tumbleweed
From an advisory covering 34 CVEs
before 2.34-1.2
2.34-1.2

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-6485 is a critical vulnerability (CVSS 9.8) in Gnu Glibc, published February 1, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.69%, the 91st percentile. Fixed in glibc 2.27-1.

References

Show 107 moreShow less
MoveEnter Open