J-Security Center

Title: Mah-Jong MJ-Player Server Flag Local Buffer Overflow Vulnerability

Severity: MODERATE

Description:

Mah-Jong is a freely available, open source implementation of the Mah-Jong game. It is available for the Linux platform.

A problem in the handling of large requests supplied with certain flags has been reported in Maj-Jong. Because of this, it may be possible for a local attacker to gain elevated privileges.

The problem is in the handling of long parameters by mj-player. When supplying a long parameter with the server flag (--server), a boundary condition error occurs. This is due to insufficient bounds checking during a strcpy() operation where the user-supplied server string is copied into an internal buffer. As this program is typically installed with privileges, it is possible for a user with local access to a system with the vulnerable program installed to execute code with elevated privileges.

This vulnerability may be related to the issues described that were addressed in Debian Security Advisory DSA 378-1 and described in BID 8557. If this is the case, this BID will be updated accordingly.

Affected Products:

  • Mah-Jong Mah-Jong 1.4.0

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.