https://bugzilla.redhat.com/show_bug.cgi?id=984185
Bug ID: 984185 Summary: perl should be a hardened build Product: Fedora Version: 18 Component: perl Severity: unspecified Priority: unspecified Assignee: mmaslano@redhat.com Reporter: h.reindl@thelounge.net QA Contact: extras-qa@fedoraproject.org CC: cweyl@alumni.drew.edu, iarnell@gmail.com, jplesnik@redhat.com, kasal@ucw.cz, mmaslano@redhat.com, perl-devel@lists.fedoraproject.org, ppisar@redhat.com, psabata@redhat.com, rc040203@freenet.de, tcallawa@redhat.com
perl is often used for long running services (mailgraph, smokeping, postgrey..) as well as called from webservers with untrusted input
so it should be "Full RELRO" and PIE http://fedoraproject.org/wiki/Packaging:Guidelines#PIE ______________________________________________________
If your package meets any of the following criteria you MUST enable the PIE compiler flags:
Your package is long running. This means it's likely to be started and keep running until the machine is rebooted, not start on demand and quit on idle.
Your package has suid binaries, or binaries with capabilities.
Your package runs as root.
If your package meets the following criteria you should consider enabling the PIE compiler flags:
Your package accepts/processes untrusted input. ______________________________________________________
[root@srv-rhsoft:~]$ checksec --file /usr/bin/perl RELRO STACK CANARY NX PIE RPATH RUNPATH FILE Partial RELRO Canary found NX enabled No PIE RPATH RUNPATH /usr/bin/perl
https://bugzilla.redhat.com/show_bug.cgi?id=984185
--- Comment #1 from Petr Pisar ppisar@redhat.com --- Have you considered the perl is also used for short-time scripts? Are you going to promote any interpreter (python, tcl, bash, pl, etc.) for hardening?
https://bugzilla.redhat.com/show_bug.cgi?id=984185
--- Comment #2 from Harald Reindl h.reindl@thelounge.net --- clearly yes and sooner or later hopefully the whole distribution get hardened and prelink banned, until then at least "checksec --proc-all" on servers should not list anything without "Full RELRO" and PIE-code
https://bugzilla.redhat.com/show_bug.cgi?id=984185
--- Comment #3 from Marcela Mašláňová mmaslano@redhat.com --- I was speaking to the Security team, because I was interested in their point of view. The common practice until now was "add the full relro to long time running apps, especially daemons".
In opinion of Security team, languages don't need full relro if they don't write into pointers like this example: http://cs.potsdam.edu/cgi-bin/man/man2html?Glib::Object+3 Glib::Object->new_from_pointer
Therefore Perl is a good candidate for full relro. I would like to see analysis of slowdown of Perl examples and also all major components before we start changing partial relro into full relro. I'd rather see same approach for whole distribution than accidentally changing some apps.
https://bugzilla.redhat.com/show_bug.cgi?id=984185
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|mmaslano@redhat.com |jplesnik@redhat.com
--- Comment #4 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=984185
--- Comment #5 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life.
Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=984185
Fedora End Of Life endoflife@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |WONTFIX Last Closed| |2014-02-05 17:07:40
--- Comment #6 from Fedora End Of Life endoflife@fedoraproject.org --- Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug.
Thank you for reporting this bug and we are sorry it could not be fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=984185
Harald Reindl h.reindl@thelounge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |NEW Resolution|WONTFIX |--- Keywords| |Reopened
--- Comment #7 from Harald Reindl h.reindl@thelounge.net --- Resolution: ---> WONTFIX
when i see the recent changelog this should be fixed better sooner than later
* Fr Jan 20 2017 Petr Pisar ppisar@redhat.com - 4:5.22.3-367 - Fix a buffer overflow in split in scalar context (RT#130262) - Fix a heap overflow with pack "W" (RT129149) - Fix a use-after-free when processing scalar variables in forms (RT#129125) - Fix a heap overflow if invalid octal or hexadecimal number is used in transliteration expression (RT#129342) - Fix out-of-bound read in case of unmatched regexp backreference (RT#129377)
https://bugzilla.redhat.com/show_bug.cgi?id=984185
Harald Reindl h.reindl@thelounge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|18 |24
https://bugzilla.redhat.com/show_bug.cgi?id=984185
--- Comment #8 from Harald Reindl h.reindl@thelounge.net ---
I would like to see analysis of slowdown of Perl examples and also all major components before we start changing partial relro into full relro
security first
"grep" become noticeable slower in F23 as hardened build, in F24 it is stil hardened but has the same impressive performance than in F22 or older releases, so something got optimized
https://bugzilla.redhat.com/show_bug.cgi?id=984185
--- Comment #9 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=984185
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |DUPLICATE Last Closed|2014-02-05 17:07:40 |2017-07-26 05:05:59
--- Comment #10 from Petr Pisar ppisar@redhat.com --- Perl 5.26.0 is built as PIE, it's still missing full RELRO. Merging this request to similar bug #1238804.
*** This bug has been marked as a duplicate of bug 1238804 ***
perl-devel@lists.fedoraproject.org