Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908038 (CVE-2023-30571) - app-arch/libarchive: race condition leading to world writable directory creation
Summary: app-arch/libarchive: race condition leading to world writable directory creation
Status: RESOLVED INVALID
Alias: CVE-2023-30571
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://github.com/libarchive/libarch...
Whiteboard: A4 [upstream]
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-08 04:32 UTC by John Helmert III
Modified: 2023-07-14 04:42 UTC (History)
2 users (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-06-08 04:32:43 UTC
CVE-2023-30571:

Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call inside archive_write_disk_posix.c changes the umask of the whole process for a very short period of time; a race condition with another thread can lead to a permanent umask 0 setting. Such a race condition could lead to implicit directory creation with permissions 0777 (without the sticky bit), which means that any low-privileged local user can delete and rename files inside those directories.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-07-14 04:42:47 UTC
Hm, looks like this will just end up being a documentation fix.