QNX Neutrino RTOS contains a flaw that may allow a local attacker to elevate their privileges. The issue is due to the improper handling of environment variables in the libph library (used by many applications in the Photon API package). The libph system library (libph.so.3) does not check the bounds on user-supplied input to the PHOTON_PATH variable allowing a user to overflow the setitem() function, which will execute arbitrary code under the privilege of the utility calling the library. Since many of the applications linked against libph.so.3 are SUID, there are many vectors for using this to leverage privileged access.
Classification
Location:
Local Access Required
Attack Type:
Input Manipulation
Impact:
Loss of Integrity
Exploit:
Exploit Rumored
Solution
Currently, there are no known upgrades or patches to correct this issue. It is possible to correct the flaw by implementing the following workaround: remove the setuid bit from any programs linked to libph.so.3