CVE-2018-10940: Buffer Overflow

Published May 9, 2018
·
Updated

Last updated 4 July 2026

Other sources

The cdromioctlmediachanged function in drivers/cdrom/cdrom.c in the Linux kernel before 4.16.6 allows local attackers to use a incorrect bounds check in the CDROM driver CDROMMEDIACHANGED ioctl to read out kernel memory.

Launchpad

Affected Software

4 affected componentsFixes available
redhat/kernel<4.16.6
4.16.6
Linux Linux kernel<4.16.6
Debian Debian Linux=7.0
debian/linux
5.10.223-15.10.262-16.1.176-16.1.180-16.12.94-16.12.101-17.1.8-17.1.8-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 4.16.6
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.262-1Fixed in 6.1.176-1Fixed in 6.1.180-1Fixed in 6.12.94-1Fixed in 6.12.101-1Fixed in 7.1.8-1Fixed in 7.1.8-2
  3. Upgrade

    Upgrade linux kernel to a version that resolves this vulnerability.

    Fixed in 4.16.6

Event History

May 9, 2018
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Data Sourced
via NVD·05:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:46 PM
Description
Jul 4, 2026
Data Sourced
via Ubuntu·11:19 AM
RemedyDescriptionSeverityAffected Software
Aug 16, 2026
Data Sourced
via Debian·12:08 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2018-10940?

CVE-2018-10940 is a vulnerability in the Linux kernel that allows local attackers to read out kernel memory.

2

What is the severity of CVE-2018-10940?

The severity of CVE-2018-10940 is categorized as low.

3

How can local attackers exploit CVE-2018-10940?

Local attackers can exploit CVE-2018-10940 by using an incorrect bounds check in the CDROM driver CDROM_MEDIA_CHANGED ioctl to read kernel memory.

4

Which Linux kernel versions are affected by CVE-2018-10940?

Linux kernel versions before 4.16.6 are affected by CVE-2018-10940.

5

Where can I find more information about CVE-2018-10940?

You can find more information about CVE-2018-10940 in the references provided: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9de4ee40547fd315d4a0ed1dd15a2fa3559ad707, https://github.com/torvalds/linux/commit/9de4ee40547fd315d4a0ed1dd15a2fa3559ad707, and https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.16.6.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203