CVE-2015-5327
Medium · 6.5CVSS
6.5
EPSS
1.6%
Published
Sep 25, 2017
CISA due date
—
Cloudanix analysis
A flaw in how Linux reads certificate dates can let attackers peek at internal system memory they should not see.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
Out-of-bounds memory read in x509_decode_time during certificate time field parsing allows reading kernel memory beyond intended bounds.
Why it matters to the business
Attackers may obtain sensitive kernel memory contents, increasing risk of credential or data exposure on affected Linux systems; high prevalence in servers and devices amplifies operational exposure.
How an attack unfolds
An attacker supplies or triggers parsing of a crafted x509 certificate containing malformed time fields; the vulnerable function reads past allocated buffers, exposing adjacent kernel memory that can be returned to user space.
How to fix it
Upgrade to a Linux kernel version containing the fix for the out-of-bounds read in x509_decode_time; apply vendor backports where available and rebuild custom kernels with the corrected x509_cert_parser.c.
How to confirm the fix worked
Confirm kernel source contains bounds checks in x509_decode_time; test parsing of certificates with extreme time values and verify no out-of-bounds access occurs via memory sanitizer or static analysis.
Typical attack path
- Identify a network service or local context that invokes x509 certificate parsing on untrusted input
- Craft a certificate with out-of-range or malformed ASN.1 time values
- Deliver the certificate to trigger x509_decode_time
- Read the leaked memory contents from the returned data or error path
How to detect it
Review kernel logs and audit trails for unusual certificate parsing errors or crashes; examine any user-space processes that handle x509 data for unexpected memory disclosure patterns.
What your security team should do
- Prioritize kernel updates on internet-facing systems and certificate-handling services
- Monitor vendor advisories for backported fixes in long-term support kernels
- Restrict untrusted certificate ingestion until patches are applied
The record
Out-of-bounds memory read in the x509_decode_time function in x509_cert_parser.c in Linux kernels 4.3-rc1 and after.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Mageia:5 | dracut | 0 | 038-21.mga5 |
| Mageia:5 | kernel | 0 | 4.4.13-1.mga5 |
| Mageia:5 | kernel-linus | 0 | 4.4.13-1.mga5 |
| Mageia:5 | kernel-tmb | 0 | 4.4.13-1.mga5 |
| Mageia:5 | kernel-userspace-headers | 0 | 4.4.13-1.mga5 |
| Mageia:5 | kmod-vboxadditions | 0 | 5.0.16-6.mga5 |
| Mageia:5 | kmod-virtualbox | 0 | 5.0.16-6.mga5 |
| Mageia:5 | kmod-xtables-addons | 0 | 2.10-7.mga5 |
| Ubuntu:14.04:LTS | linux-aws | 0 | 4.4.0-1002.2 |
| Ubuntu:14.04:LTS | linux-lts-xenial | 0 | 4.4.0-13.29~14.04.1 |
| Ubuntu:16.04:LTS | linux | 0 | 4.3.0-1.10 |
| Ubuntu:16.04:LTS | linux-aws | 0 | 4.4.0-1001.10 |
| Ubuntu:16.04:LTS | linux-gke | 0 | 4.4.0-1003.3 |
| Ubuntu:16.04:LTS | linux-hwe | 0 | 4.8.0-36.36~16.04.1 |
| Ubuntu:16.04:LTS | linux-raspi2 | 0 | 4.3.0-1006.6 |
| Ubuntu:16.04:LTS | linux-snapdragon | 0 | 4.4.0-1012.12 |
Related vulnerabilities
- CVE-2017-15129 A use-after-free vulnerability was found in network namespaces code affecting the Linux… Also affects dracut
- CVE-2017-5754 Systems with microprocessors utilizing speculative execution and indirect branch… Also affects dracut
- CVE-2017-5753 Systems with microprocessors utilizing speculative execution and branch prediction may… Also affects dracut
- CVE-2017-17741 The KVM implementation in the Linux kernel through 4.14.7 allows attackers to obtain… Also affects dracut
- CVE-2017-1000407 The Linux Kernel 2.6.32 and later are affected by a denial of service, by flooding the… Also affects dracut
- CVE-2016-0758 Integer overflow in lib/asn1_decoder.c in the Linux kernel before 4.6 allows local users… Also affects dracut
- CVE-2016-2117 The atl2_probe function in drivers/net/ethernet/atheros/atlx/atl2.c in the Linux kernel… Also affects dracut
- CVE-2016-3672 The arch_pick_mmap_layout function in arch/x86/mm/mmap.c in the Linux kernel through… Also affects dracut