buffer overrun through UDP input

Bug #1243969 reported by Saikrishna Arcot
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
flightgear (Ubuntu)
Fix Released
Medium
Unassigned
Declined for Quantal by Steve Beattie
Precise
Won't Fix
Medium
Unassigned
simgear (Ubuntu)
Fix Released
Medium
Unassigned
Declined for Quantal by Steve Beattie
Precise
Won't Fix
Medium
Unassigned

Bug Description

This is in regards to CVE 2012-2091. In short, a crafted UDP packet could be sent to flightgear which would then cause a crash in simgear. This would then cause a crash in flightgear. This bug affects both flightgear and simgear in all releases except Saucy and Trusty.

Tags: patch
Revision history for this message
Saikrishna Arcot (saiarcot895) wrote :

Here's a debdiff of the sources in Raring.

I have built this package in sbuild for Raring and it compiles successfully. I was able to install the base flightgear and simgear packages in Raring and was able to upgrade to the built debs.

no longer affects: flightgear (Ubuntu)
information type: Private Security → Public Security
Changed in simgear (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "debdiff of Simgear Raring" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Saikrishna Arcot (saiarcot895) wrote :

Here is the debdiff of flightgear sources for Raring.

Flightgear FTBFS (even without this debdiff), most likely due to the changes in 2.6.0-3ubuntu1. Until those changes are reverted, flightgear will continue to FTBFS. Note that the libs-underlinkage.patch that was added in that change is not present in Quantal, which also uses 2.6.0.

Revision history for this message
Saikrishna Arcot (saiarcot895) wrote :

Correction: 2.6.0-3ubuntu1 refers to simgear 2.6.0-3ubuntu1.

Changed in flightgear (Ubuntu):
status: New → Confirmed
Revision history for this message
Adam Conrad (adconrad) wrote :

http://paste.ubuntu.com/6298101/

The above patch fixes the FTBFS, should be able to be uploaded along with the security update.

Revision history for this message
Saikrishna Arcot (saiarcot895) wrote :

Do I need to update my patch and combine the FTBFS fix?

Revision history for this message
Seth Arnold (seth-arnold) wrote :

Saikrishna, no, I've got your fixes merged with Adam's fixes building on my laptop right now, if the end results look good I'll release them later tonight.

Thanks, both of you.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package flightgear - 2.6.0-1ubuntu1

---------------
flightgear (2.6.0-1ubuntu1) raring-security; urgency=low

  * SECURITY UPDATE: buffer overrun via the rotor tag in an aircraft XML model
    (LP: #1243969)
    - debian/patches/CVE-2012-2091.patch: use snprintf(), and read in only
      256 bytes at most.
    - CVE 2012-2091
    - Prepared by Saikrishna Arcot <email address hidden>
  * Add pthread to SIMGEAR_CORE_LIBRARY_DEPENDENCIES to fix FTBFS.
    - Prepared by Adam Conrad <email address hidden>
 -- Seth Arnold <email address hidden> Thu, 24 Oct 2013 18:46:02 -0800

Changed in flightgear (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package simgear - 2.6.0-3ubuntu1.1

---------------
simgear (2.6.0-3ubuntu1.1) raring-security; urgency=low

  * SECURITY UPDATE: buffer overrun through UDP input (LP: #1243969)
    - debian/patches/CVE-2012-2091.patch: ensure that the length of what is
      being read in is less than the maximum, and ensure that the length of
      the message or the maximum length is read in.
    - CVE 2012-2091
 -- Saikrishna Arcot <email address hidden> Tue, 22 Oct 2013 13:14:53 -0400

Changed in simgear (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Thanks Saikrishna!

(Why is it I only notice things like a missing "-" in "CVE 2012-2091" after it's too late to fix them?)

Revision history for this message
Saikrishna Arcot (saiarcot895) wrote :

I should have probably mentioned this needs to be applied to Quantal and Precise as well. I'll need to create new bugs for those, correct?

Revision history for this message
Seth Arnold (seth-arnold) wrote :

I think that's normally handled via "nominate for series" link, but it appears I don't have privileges to do so. Thanks for the confirmation that Quantal and Precise still need fixing.

Mathew Hodson (mhodson)
Changed in flightgear (Ubuntu):
importance: Undecided → Medium
Changed in simgear (Ubuntu):
importance: Undecided → Medium
Changed in simgear (Ubuntu Precise):
importance: Undecided → Medium
Changed in flightgear (Ubuntu Precise):
importance: Undecided → Medium
Revision history for this message
Andreas Moog (ampelbein) wrote :

Precise is EoL, removing task.

Changed in flightgear (Ubuntu Precise):
status: New → Won't Fix
Changed in simgear (Ubuntu Precise):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.