CVE-2023-30630
Dmidecode before 3.5 allows -dump-bin to overwrite a local file. This has security relevance because, for example, execution of Dmidecode via Sudo is plausible. NOTE: Some third parties have indicated the fix in 3.5 does not adequately address the vulnerability. The argument is that the proposed patch prevents dmidecode from writing to an existing file. However, there are multiple attack vectors that would not require overwriting an existing file that would provide the same level of unauthorized privilege escalation (e.g. creating a new file in /etc/cron.hourly).
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | cpu-x | Fix pending | UBUNTU-CVE-2023-30630 | |
| Ubuntu 26.04 | cpu-x | Under investigation | UBUNTU-CVE-2023-30630 | |
| Ubuntu 26.04 | dmidecode | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | cpu-x | Will not fix cpu-x embedds dmidecode source This CVE relies on an improbable non-default configuration of allowing an unprivileged user to run demidecode under sudo with a… | UBUNTU-CVE-2023-30630 | |
| Ubuntu 25.10 | dmidecode | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | cpu-x | Under investigation | UBUNTU-CVE-2023-30630 | |
| Ubuntu 24.04 | dmidecode | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | cpu-x | Under investigation | UBUNTU-CVE-2023-30630 | |
| Ubuntu 22.04 | dmidecode | Fix pending | UBUNTU-CVE-2023-30630 | |
| Ubuntu 20.04 | cpu-x | Will not fix cpu-x embedds dmidecode source This CVE relies on an improbable non-default configuration of allowing an unprivileged user to run demidecode under sudo with a… | UBUNTU-CVE-2023-30630 | |
| Ubuntu 20.04 | dmidecode | Will not fix cpu-x embedds dmidecode source This CVE relies on an improbable non-default configuration of allowing an unprivileged user to run demidecode under sudo with a… | UBUNTU-CVE-2023-30630 | |
| Ubuntu 18.04 | dmidecode | Will not fix cpu-x embedds dmidecode source This CVE relies on an improbable non-default configuration of allowing an unprivileged user to run demidecode under sudo with a… | UBUNTU-CVE-2023-30630 | |
| Ubuntu 16.04 | dmidecode | Will not fix cpu-x embedds dmidecode source This CVE relies on an improbable non-default configuration of allowing an unprivileged user to run demidecode under sudo with a… | UBUNTU-CVE-2023-30630 | |
| Ubuntu 14.04 | dmidecode | Will not fix cpu-x embedds dmidecode source This CVE relies on an improbable non-default configuration of allowing an unprivileged user to run demidecode under sudo with a… | UBUNTU-CVE-2023-30630 | |
| Debian 14 | dmidecode | Fixed | 3.5-1 | DEBIAN-CVE-2023-30630 |
| Debian 13 | dmidecode | Fixed | 3.5-1 | DEBIAN-CVE-2023-30630 |
| Debian 12 | dmidecode | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2023-30630 | |
| Red Hat Enterprise Linux 9 | dmidecode | Fixed | 1:3.3-7.el9_2.1 | RHSA-2023:5061 |
| Red Hat Enterprise Linux 8 | dmidecode | Fixed | 1:3.3-4.el8_8.1 | RHSA-2023:5252 |
| Red Hat Enterprise Linux 7 | dmidecode | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | dmidecode | Will not fix Out of support scope | ||
| AlmaLinux 9 | dmidecode | Fixed | 1:3.3-7.el9_2.1 | ALSA-2023:5061 |
| AlmaLinux 8 | dmidecode | Fixed | 1:3.3-4.el8_8.1 | ALSA-2023:5252 |
| Rocky Linux 9 | dmidecode | Fixed | 1:3.3-7.el9_2.1 | RLSA-2023:5061 |
References
- https://github.com/adamreiser/dmiwrite
- https://lists.nongnu.org/archive/html/dmidecode-devel/2023-03/msg00003.html
- https://git.savannah.nongnu.org/cgit/dmidecode.git/commit/?id=d8cfbc808f387e87091c25e7d5b8c2bb348bb206
- https://git.savannah.nongnu.org/cgit/dmidecode.git/commit/?id=6ca381c1247c81f74e1ca4e7706f70bdda72e6f2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.