CVE-2018-9395
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn mtk_cfg80211_vendor_packet_keep_alive_start and mtk_cfg80211_vendor_set_config of drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_vendor.c, there is a possible OOB write due to a missing bounds check. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceOut-of-bounds write vulnerability in MediaTek's WiFi driver (mtk_cfg80211_vendor_packet_keep_alive_start and mtk_cfg80211_vendor_set_config functions in gl_vendor.c) due to missing bounds check on user-supplied data, allowing local privilege escalation to System level.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE dataall versionsCVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify MediaTek WiFi chipsetCheck the device's WiFi chipset by reviewing kernel boot logs or using 'ls /sys/class/net/wlan0/device/' to examine the device path, or use 'getprop ro.wifi.driver' if availableAffected if The device uses a MediaTek (MediaTek Inc.) WiFi chipset rather than Broadcom, Qualcomm, or other vendors
-
Locate the vulnerable driver fileSearch for the MediaTek vendor driver file: 'find /system/lib -name "libmediatek_cfg80211.so" -o -name "mtk_cfg80211*"' or check kernel modules for 'mediatek' WiFi driverAffected if The MediaTek WiFi vendor driver library (libmediatek_cfg80211.so) is present on the device
-
Verify vulnerable functions existUse 'strings' or a disassembler tool on the driver library to search for 'mtk_cfg80211_vendor_packet_keep_alive_start' and 'mtk_cfg80211_vendor_set_config' function symbolsAffected if These specific vendor command handler functions are present in the driver binary, indicating the affected code path exists
-
Check vendor command interface exposureExamine if the WiFi vendor command interface is enabled by checking CONFIG_CFG80211_VENDOR_CMD_EXTENSION or similar kernel config, and verify vendor HAL is exposed via 'getprop | grep vendor.hal'Affected if The MediaTek vendor command extension interface is enabled and accessible to privileged system components
-
Confirm System-level WiFi privilegesCheck if any application holds the 'android.permission.MAINLINE_NETWORK_STACK' or system-level WiFi permissions by examining running processes with 'ps -A | grep wifi' and checking UID/groupsAffected if The device runs processes or services at System UID (uid=1000) that can invoke the vulnerable vendor commands through the WiFi driver interface
The device is affected if it uses a MediaTek WiFi chipset with the vulnerable vendor driver containing mtk_cfg80211_vendor_packet_keep_alive_start or mtk_cfg80211_vendor_set_config functions, where the vendor command interface is accessible to privileged callers.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedApply the MediaTek vendor patch which adds proper bounds validation before writing data in the affected vendor command handlers.
Android devices receiving July 2018 Security Patch Level or later; specific MediaTek connectivity driver update (mtk_cfg80211) with bounds checking added to mtk_cfg80211_vendor_packet_keep_alive_start and mtk_cfg80211_vendor_set_config functions
- Check your Android device's current security patch level in Settings > About Phone > Security Patch Level
- Verify if your device manufacturer has released a security update that includes the fix for CVE-2018-9395
- If an update is available, backup your device data
- Apply the security update through Settings > System > Software Update or your manufacturer's update mechanism
- After updating, confirm the security patch level includes the month the fix was released (CVE-2018-9395 was addressed in the July 2018 Android Security Patch Level or later)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,096.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2018-9395 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2018-9395 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data