Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 905093 (CVE-2023-30630)

Summary: <sys-apps/dmidecode-3.5: root privilege escalation via file overwrite
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: normal CC: base-system
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/adamreiser/dmiwrite
Whiteboard: B2 [glsa+]
Package list:
Runtime testing required: ---

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-04-26 02:59:23 UTC
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.

Admittedly needs sudo to get privesc, so down to 2. Patches in 3.5:

https://git.savannah.nongnu.org/cgit/dmidecode.git/commit/?id=d8cfbc808f387e87091c25e7d5b8c2bb348bb206
https://git.savannah.nongnu.org/cgit/dmidecode.git/commit/?id=6ca381c1247c81f74e1ca4e7706f70bdda72e6f2

Please cleanup <3.5.
Comment 1 Hans de Graaff gentoo-dev Security 2023-10-02 11:34:58 UTC
Ping. Any reason we need to keep dmidecode 3.4-r1 around?
Comment 2 Larry the Git Cow gentoo-dev 2023-10-02 21:42:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f5f3e60e178525ce96d7a7ae964f9164ab03c18

commit 7f5f3e60e178525ce96d7a7ae964f9164ab03c18
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2023-10-02 21:41:27 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2023-10-02 21:41:47 +0000

    sys-apps/dmidecode: ebuild cleanup
    
    Bug: https://bugs.gentoo.org/905093
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 sys-apps/dmidecode/Manifest                |  1 -
 sys-apps/dmidecode/dmidecode-3.4-r1.ebuild | 47 ------------------------------
 sys-apps/dmidecode/dmidecode-3.5-r1.ebuild | 47 ------------------------------
 3 files changed, 95 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-07-24 06:06:26 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=5c0087ab254b31fe978359527659342d92a2a5b0

commit 5c0087ab254b31fe978359527659342d92a2a5b0
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2024-07-24 06:06:10 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-07-24 06:06:22 +0000

    [ GLSA 202407-26 ] Dmidecode: Privilege Escalation
    
    Bug: https://bugs.gentoo.org/905093
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 glsa-202407-26.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)