clock-applet executable stack (security best-practice failure)

Bug #34130 reported by John Moser
12
Affects Status Importance Assigned to Milestone
GNOME Panel
Unknown
Wishlist
gnome-panel (Ubuntu)
Invalid
Wishlist
Ubuntu Desktop Bugs

Bug Description

lsmemmap.sh shows clock-applet has an executable stack on x86-64. This is a security best-practice failure: shellcode injection into the stack is possible now that it is executable. Note that in the case of clock-applet there is theoretically no way to elevate privileges and thus this is very minor.

task 5169 (/usr/lib/gnome-panel/clock-applet)
  7fffffa56000-7fffffa6a000 rwxp 7fffffa56000 00:00 0 [stack]

Please note that this is not a security vulnerability; it is a failure to execute security best practices. By correcting this, certain real vulnerabilities will become difficult or impossible to exploit beyond basic denial of service.

The most likely cause of this is the use of gcc nested functions in clock-applet.

See also bug #34129 which has the script I used as an attachment.

Revision history for this message
John Moser (nigelenki) wrote :

Marking minor low priority, as this is basically not exploitable in theory. It would be nice to see this corrected but not practically important.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. I've forwarded the issue upstream: http://bugzilla.gnome.org/show_bug.cgi?id=335942

Changed in gnome-applets:
assignee: nobody → desktop-bugs
Revision history for this message
Vincent Untz (vuntz) wrote :

Don't know if messages are forwarded here...

I've compiled the clock applet with -ansi -pedantic and there's no problem. Could this be evolution-data-server that have this problem?

Revision history for this message
John Moser (nigelenki) wrote :

This is an Ubuntu bug, dependent on bug #49192, which I have already explained how to fix as of last night. :)

Changed in gnome-panel:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

is that a panel issue or not then?

Revision history for this message
John Moser (nigelenki) wrote :

Nope, this is directly a result of bug #49192, and can be closed here and upstream.

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing then

Changed in gnome-panel:
status: Confirmed → Rejected
Changed in gnome-panel:
status: Needs Info → Rejected
Changed in gnome-panel:
importance: Unknown → Wishlist
status: Invalid → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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