Bug 2216965 (CVE-2023-29403) - CVE-2023-29403 golang: runtime: unexpected behavior of setuid/setgid binaries
Summary: CVE-2023-29403 golang: runtime: unexpected behavior of setuid/setgid binaries
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2023-29403
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2217560 2217561 2217588 2217590 2217591 2217592 2217593 2217594 2217595 2217596 2217597 2217598 2217599 2217600 2217601
Blocks: 2217573
TreeView+ depends on / blocked
 
Reported: 2023-06-23 12:26 UTC by Avinash Hanwate
Modified: 2023-11-06 10:25 UTC (History)
16 users (show)

Fixed In Version: go 1.20.5, go 1.19.10
Doc Type: If docs needed, set a value
Doc Text:
On Unix platforms, the Go runtime does not behave differently when a binary is run with the setuid/setgid bits. This can be dangerous in certain cases, such as when dumping memory state or assuming the status of standard I/O file descriptors. If a setuid/setgid binary is executed with standard I/O file descriptors closed, opening any files can result in unexpected content being read or written with elevated privileges. Similarly, if a setuid/setgid program is terminated, either via panic or signal, it may leak the contents of its registers.
Clone Of:
Environment:
Last Closed: 2023-06-29 14:16:40 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2023:3940 0 None None None 2023-06-29 13:45:51 UTC
Red Hat Product Errata RHBA-2023:3941 0 None None None 2023-06-29 14:13:27 UTC
Red Hat Product Errata RHBA-2023:3956 0 None None None 2023-06-30 02:50:32 UTC
Red Hat Product Errata RHSA-2023:3920 0 None None None 2023-06-29 05:30:51 UTC
Red Hat Product Errata RHSA-2023:3922 0 None None None 2023-06-29 09:07:25 UTC
Red Hat Product Errata RHSA-2023:3923 0 None None None 2023-06-29 09:45:20 UTC

Description Avinash Hanwate 2023-06-23 12:26:59 UTC
On Unix platforms, the Go runtime does not behave differently when a binary is run with the setuid/setgid bits. This can be dangerous in certain cases, such as when dumping memory state, or assuming the status of standard i/o file descriptors. If a setuid/setgid binary is executed with standard I/O file descriptors closed, opening any files can result in unexpected content being read or written with elevated privileges. Similarly, if a setuid/setgid program is terminated, either via panic or signal, it may leak the contents of its registers.

https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ
https://pkg.go.dev/vuln/GO-2023-1840
https://go.dev/cl/501223
https://go.dev/issue/60272

Comment 1 Pedro Sampaio 2023-06-26 17:41:47 UTC
Created golang tracking bugs for this issue:

Affects: epel-all [bug 2217560]
Affects: fedora-all [bug 2217561]

Comment 3 errata-xmlrpc 2023-06-29 05:30:49 UTC
This issue has been addressed in the following products:

  Red Hat Developer Tools

Via RHSA-2023:3920 https://access.redhat.com/errata/RHSA-2023:3920

Comment 4 errata-xmlrpc 2023-06-29 09:07:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:3922 https://access.redhat.com/errata/RHSA-2023:3922

Comment 5 errata-xmlrpc 2023-06-29 09:45:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:3923 https://access.redhat.com/errata/RHSA-2023:3923

Comment 6 Product Security DevOps Team 2023-06-29 14:16:37 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-29403


Note You need to log in before you can comment on or make changes to this bug.