漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Potential stack-based buffer clash during tilde expansion in wordexp
Vulnerability Description
When expanding paths that begin with a tilde (~) followed by a username, the internal parse_tilde function extracts the username to determine the user's home directory. The implementation allocates memory for this username directly on the stack using the strndupa macro. Because the size of this allocation was determined by the length of the user-supplied input without any bounds checks, passing an excessively long username e.g. thousands of characters, forces the thread to exhaust its stack space. Thus if an application passes untrusted, attacker-controlled input to the wordexp function, an attacker can trigger a stack clash.
CVSS Information
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:L/SA:H/E:U
Vulnerability Type
栈缓冲区溢出
Vulnerability Title
GNU glibc 缓冲区错误漏洞
Vulnerability Description
GNU glibc是美国GNU基金会开源的一个 GNU 计划所实现的 C 标准库。 GNU glibc 2.0版本至2.43版本存在缓冲区错误漏洞,该漏洞源于在展开以波浪号加用户名开头的路径时,parse_tilde函数使用strndupa宏在栈上分配内存,未对用户输入的超长用户名进行边界检查,导致线程栈空间耗尽,从而触发栈冲突。
CVSS Information
N/A
Vulnerability Type
N/A