Unchecked return value in Inetutils - GNU network utilities - CVE-2023-40303
Published: August 23, 2023
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to usage of an unchecked return values of set*id() family functions in ftpd, rcp, rlogin, rsh, rshd, and uucpd while the setuid system call fails when a process is trying to drop privileges
before letting an ordinary user control the activities of the process. A local user can abuse this situation and execute arbitrary code with elevated privileges.
Affected software
Ubuntu
inetutils (Ubuntu package)
inetutils-telnetd (Ubuntu package)
inetutils-tools (Ubuntu package)
How to mitigate CVE-2023-40303
inetutils-telnetd (Ubuntu package) - addressed in versions 2:1.9.4-11ubuntu0.2, 2:2.2-2ubuntu0.1, 2:2.4-2ubuntu1.1
inetutils-tools (Ubuntu package) - addressed in versions 2:1.9.4-11ubuntu0.2, 2:2.2-2ubuntu0.1, 2:2.4-2ubuntu1.1