Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905093 (CVE-2023-30630) - <sys-apps/dmidecode-3.5: root privilege escalation via file overwrite
Summary: <sys-apps/dmidecode-3.5: root privilege escalation via file overwrite
Status: RESOLVED FIXED
Alias: CVE-2023-30630
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL: https://github.com/adamreiser/dmiwrite
Whiteboard: B2 [glsa+]
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-26 02:59 UTC by John Helmert III
Modified: 2024-07-24 06:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)