Cloudanix VulnDB

CVE-2015-5327

Medium · 6.5

CVSS

6.5

EPSS

1.6%

Published

Sep 25, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Identify a network service or local context that invokes x509 certificate parsing on untrusted input
  2. Craft a certificate with out-of-range or malformed ASN.1 time values
  3. Deliver the certificate to trigger x509_decode_time
  4. 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