Debian Security Advisory: nginx security update
debian.org
debian.org
Notes:
Issue introduced with the Debian specific fix for CVE-2013-0337 / #701112
So Nginx users on non-Debian-based systems don't need to worry.This is a general problem, that almost inevitably happens if patches are developed by (non-upstream) people who do not have an intimate knowledge of the code.
What's worse in the case of Debian and other distros is that they have no incentive to coordinate their patches with upstream. In particular, they do not need to convince upstream for inclusion. This is quite risky from a Q/A point of view.
I wonder when this issue will appear in enterprise distros (RHEL, SLES, etc.) as well, where the situation is even worse. These distros try to support package versions which are way older than Debian/Stable ever got, backporting patches to versions which aren't even interesting to upstream anymore, so they couldn't receive good feedback from upstream even if they suddenly decided to care about upstream's opinion.
They do have an incentive: patches against upstream need to be maintained. Maintainer has much less work if any patches are included upstream.
I can't speak for other distros, but in my experience many Debian maintainers will strongly oppose including distro-specific patches in their packages without a very good reason.
You are right. However, this only means they have an incentive to push patches to upstream _in hindsight_. That's is better than nothing, but still happens after the fact, when the damage is done and the defect distributed to the users.
As far as I know, they have no incentive to _wait_ for their patches to be included in upstream.
> many [...] maintainers will strongly oppose including distro-specific patches in their packages without a very good reason.
Well, fixing security issues is often seen as a "very good reason", completely ignoring that an incomplete and/or errorneous security fix may do more harm than good, and meanwhile provides the users with a false sense of security.
That is an issue some distributions introduced and they have to deal with it or you should choose one that does a rolling release.
In order to secure nginx against privilege escalation attacks, we are
changing the way log file owners & permissions are handled so that www-data
is not allowed to symlink a logfile. /var/log/nginx is now owned by root:adm
and its permissions are changed to 0755. The package checks for such symlinks
on existing installations and informs the admin using debconf.
That unfortunately may come at a cost in terms of privacy. /var/log/nginx is
now world-readable, and nginx hardcodes permissions of non-existing logs to
0644. On systems running logrotate log files are private after the first
logrotate run, since the new log files are created with 0640 permissions.
-- Christos Trochalakis <yatiohi@ideopolis.gr> Tue, 04 Oct 2016 15:20:33 +0300Installing the upgraded package often won't restart the service, meaning you're still running old code, and in the case of libraries, won't restart every process on the system that has loaded the library, meaning you're still running old code...
1. Updates to the kernel
2. Updates to system libraries which services depend on
For 1, if you run Ubuntu you now have canonical-livepatch: http://blog.dustinkirkland.com/2016/10/canonical-livepatch.h...2 remains a problem, and yes, if you're thinking openssl, that's a problem. But you can track what goes into /var/run/reboot-required.pkgs to see it's really not 99% of fixes we're streaming to you.
See http://askubuntu.com/questions/775504/does-unattended-upgrad... for a more complete discussion.
sudo apt update
sudo apt upgrade
See also:sudo apt-get install --only-upgrade <package_name>
They still don't have that vulnerability listed [0], which means their RSS feeds are of limited value.
[0] http://www.cvedetails.com/vulnerability-list/vendor_id-10048...
Note: cvedetails explicitly says it does not show "Rejected or reserved CVE entries", and so shouldn't yet be showing this CVE.
Others were never affected.
Both of those vulnerabilities are trivial. The OpenSSL vulnerability is a very weak, non-persistent denial of service, and this nginx vulnerability requires an attacker to already have code execution on the machine.