In glibc 2.26 and earlier there is confusion in the usage...
High severity
Unreviewed
Published
May 13, 2022
to the GitHub Advisory Database
•
Updated Feb 2, 2023
Description
Published by the National Vulnerability Database
Jan 31, 2018
Published to the GitHub Advisory Database
May 13, 2022
Last updated
Feb 2, 2023
In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which can be used to write before the destination buffer leading to a buffer underflow and potential code execution.
References