CVE-2018-10902
Linux: Use After Free
Check your servers for CVE-2018-10902
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2018-10902 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
It was found that the raw midi kernel driver does not protect against concurrent access which leads to a double realloc (double free) in snd_rawmidi_input_params() and snd_rawmidi_output_status() which are part of snd_rawmidi_ioctl() handler in rawmidi.c file. A malicious local attacker could possibly use this for privilege escalation.
Severity (CVSS)
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.52%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 37.7% of all scored CVEs. Scores of 28 Nov 2026.
Weakness
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
unaffected from 3.16.58, before 3.16.* unaffected from 3.18.117, before 3.18.* unaffected from 4.4.144, before 4.4.* unaffected from 4.9.115, before 4.9.* unaffected from 4.14.100, before 4.14.* unaffected from 4.17.10, before 4.17.* unaffected 4.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2018-10902 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2018-10902
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2018-10902
trivy image --scanners vuln IMAGE | grep CVE-2018-10902
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2018:3083 access.redhat.com · vendor advisory
- USN-3776-1 usn.ubuntu.com · vendor advisory
- USN-3776-2 usn.ubuntu.com · vendor advisory
- USN-3847-1 usn.ubuntu.com · vendor advisory
- USN-3847-2 usn.ubuntu.com · vendor advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10902 bugzilla.redhat.com
- USN-3849-1 usn.ubuntu.com · vendor advisory
- RHSA-2019:0415 access.redhat.com · vendor advisory
- USN-3849-2 usn.ubuntu.com · vendor advisory
- DSA-4308 debian.org · vendor advisory
- USN-3847-3 usn.ubuntu.com · vendor advisory
- RHSA-2018:3096 access.redhat.com · vendor advisory
- RHSA-2019:0641 access.redhat.com · vendor advisory
- RHSA-2019:3217 access.redhat.com · vendor advisory
- RHSA-2019:3967 access.redhat.com · vendor advisory
Other references
- [debian-lts-announce] 20181003 [SECURITY] [DLA 1531-1] linux-4.9 security update lists.debian.org · mailing list
- 1041529 securitytracker.com · vdb entry
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=39675f7a7c7e7702f7d5341f1e0d01db746543a0 git.kernel.org
- 105119 securityfocus.com · vdb entry
Source: the record CVE-2018-10902 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse