Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194607 - games-fps/{doom3,quake4}* Engine Format String Vulnerability (CVE-2007-5248)
Summary: games-fps/{doom3,quake4}* Engine Format String Vulnerability (CVE-2007-5248)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High major with 3 votes (vote)
Assignee: Gentoo Security
URL: http://secunia.com/advisories/27002/
Whiteboard: B1 [noglsa]
Keywords:
: 204067 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-03 13:45 UTC by Tobias Heinlein (RETIRED)
Modified: 2019-12-08 21:15 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Heinlein (RETIRED) gentoo-dev 2007-10-03 13:45:05 UTC
Luigi Auriemma has reported a vulnerability in Doom 3, which can be exploited by malicious people to cause a DoS (Denial of Service) or potentially to compromise a vulnerable system.

The vulnerability is caused due to a format string error in the Doom 3 engine when displaying certain PunkBuster packets in the game console. This can be exploited via specially crafted "PB_Y" or "PB_U" packets sent to the server.

Successful exploitation may allow execution of arbitrary code but requires that PunkBuster is active on the server.

Solution:
Host games only in a trusted network environment.


Vulnerable games are games-fps/doom3* and games-fps/quake4*.
Comment 1 Tobias Heinlein (RETIRED) gentoo-dev 2007-10-03 13:49:21 UTC
"Successful exploitation may allow execution of arbitrary code but requires that PunkBuster is active on the server."
I'm not sure whether this should be B1 or C1.

Games, please advise.
Comment 2 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-10-04 09:41:01 UTC
(In reply to comment #1)
> "Successful exploitation may allow execution of arbitrary code but requires
> that PunkBuster is active on the server."
> I'm not sure whether this should be B1 or C1.

AFAICT, disabled by default, but most servers use it, particularly public servers. I recommend B1.
Comment 3 Matthias Geerdsen (RETIRED) gentoo-dev 2008-04-10 19:52:40 UTC
well... kinda old bug

this was masked in the meantime (please leave a comment on bugs if you do so):

# Chris Gianelloni <wolf31o2@gentoo.org> (3 Mar 2008)
# Masking due to security bug #204067
# If you only play on Punkbuster enabled servers, this is safe to unmask.


So it seems we should have issued a maskglsa for this one, do we still want that?
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2008-04-11 14:56:37 UTC
OK, I updated package.mask to reflect this bug and removed the Punkbuster note, since this bug requires Punkbuster be off, while 204067 requires that it be enabled.
Comment 5 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2009-01-11 17:22:59 UTC
the packages are masked, there is no fix yet, so switching to "enhancement" severity. Please comment on this bug if you have relevant news.
Comment 6 Róbert Čerňanský 2010-09-25 14:00:32 UTC
As written in original advisory at http://aluigi.altervista.org/adv/d3engfspb-adv.txt:

------------------------------
UPDATE 4 Oct 2007
Punkbuster has released a new version of the anti-cheat which filters
the % char passed to the vulnerable function used in the Doom 3 engine
for visualizing the strings in the console.
This prevents the exploitation of the bug via Punkbuster.
------------------------------

So bug in Doom 3 engine is no longer exploitable.  As the Punkbuster updates itself automatically (see http://www.evenbalance.com/publications/q4-pl/index.htm#updating) I see no reason to keep these games masked.
Comment 7 Stefan Behte (RETIRED) gentoo-dev Security 2010-10-07 22:23:11 UTC
*** Bug 204067 has been marked as a duplicate of this bug. ***
Comment 8 Adomas Jackevičius 2011-05-04 21:46:25 UTC
Maybe it's time to unmask Doom3 and Quake4?
Comment 9 Larry the Git Cow gentoo-dev 2019-12-08 21:15:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70055e22603149c4a2efd497d0d9bb3d37d0f107

commit 70055e22603149c4a2efd497d0d9bb3d37d0f107
Author:     Aaron Bauman <bman@gentoo.org>
AuthorDate: 2019-12-08 21:10:50 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2019-12-08 21:10:50 +0000

    games-fps/*: remove last-rited pkgs
    
    Bug: https://bugs.gentoo.org/194607
    Bug: https://bugs.gentoo.org/204067
    
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 games-fps/doom3-cdoom/Manifest                     |   1 -
 games-fps/doom3-cdoom/doom3-cdoom-1.3.1.ebuild     |  30 -----
 games-fps/doom3-cdoom/metadata.xml                 |   8 --
 games-fps/doom3-chextrek/Manifest                  |   1 -
 .../doom3-chextrek/doom3-chextrek-0.52.ebuild      |  36 ------
 games-fps/doom3-chextrek/metadata.xml              |   8 --
 games-fps/doom3-data/doom3-data-1.1.1282-r1.ebuild |  46 -------
 games-fps/doom3-data/metadata.xml                  |  14 ---
 games-fps/doom3-demo/Manifest                      |   2 -
 games-fps/doom3-demo/doom3-demo-1.1.1286-r1.ebuild |  60 ----------
 games-fps/doom3-demo/metadata.xml                  |   8 --
 games-fps/doom3-ducttape/Manifest                  |   1 -
 .../doom3-ducttape/doom3-ducttape-0007.ebuild      |  35 ------
 games-fps/doom3-ducttape/metadata.xml              |   8 --
 games-fps/doom3-eventhorizon/Manifest              |   1 -
 .../doom3-eventhorizon-1.3.ebuild                  |  30 -----
 games-fps/doom3-eventhorizon/metadata.xml          |   8 --
 games-fps/doom3-hellcampaign/Manifest              |   2 -
 .../doom3-hellcampaign-1-r1.ebuild                 |  46 -------
 games-fps/doom3-hellcampaign/metadata.xml          |   8 --
 games-fps/doom3-inhell/Manifest                    |   1 -
 games-fps/doom3-inhell/doom3-inhell-1.1-r1.ebuild  |  28 -----
 games-fps/doom3-inhell/metadata.xml                |   8 --
 games-fps/doom3-lms/Manifest                       |   1 -
 games-fps/doom3-lms/doom3-lms-4.ebuild             |  29 -----
 games-fps/doom3-lms/metadata.xml                   |   8 --
 games-fps/doom3-mitm/Manifest                      |   1 -
 games-fps/doom3-mitm/doom3-mitm-20070129.ebuild    |  44 -------
 games-fps/doom3-mitm/metadata.xml                  |   8 --
 games-fps/doom3-roe/doom3-roe-1.ebuild             |  53 --------
 games-fps/doom3-roe/metadata.xml                   |  16 ---
 games-fps/doom3/Manifest                           |   2 -
 games-fps/doom3/doom3-1.3.1304-r1.ebuild           |  99 ---------------
 games-fps/doom3/metadata.xml                       |  20 ----
 games-fps/quake4-bin/Manifest                      |   1 -
 games-fps/quake4-bin/metadata.xml                  |  25 ----
 games-fps/quake4-bin/quake4-bin-1.4.2-r2.ebuild    | 133 ---------------------
 games-fps/quake4-data/metadata.xml                 |   8 --
 .../quake4-data/quake4-data-1.0.2147.12.ebuild     |  56 ---------
 games-fps/quake4-demo/Manifest                     |   1 -
 games-fps/quake4-demo/metadata.xml                 |  24 ----
 games-fps/quake4-demo/quake4-demo-1.0-r2.ebuild    |  73 -----------
 profiles/package.mask                              |  19 ---
 43 files changed, 1011 deletions(-)