Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel security updates
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
hlieberman
Retired Dev
Retired Dev


Joined: 19 Oct 2006
Posts: 3

PostPosted: Thu Oct 19, 2006 3:54 pm    Post subject: Reply with quote

I am currently a Gentoo Security Apprentice, and I trained under plasmaroo in terms of kernel security. Unless someone more competent than I is willing to step in, I'd be happy to take over Kernel Security.
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Fri Oct 20, 2006 1:19 am    Post subject: Reply with quote

please email me (dsd@gentoo.org)
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Fri Oct 20, 2006 2:18 am    Post subject: Reply with quote

Quote:
In the meantime users concerned about (kernel) security have to make their homework. We all are system administrators in the end, don't we? For many users it will be sufficient to know if:
Latest Most Secure Version == Latest stable version?
Oldest stable version == Fixed Version?


for vulnerability fixes you should always stick with the latest stable, we don't fix older versions
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
kadeux
Tux's lil' helper
Tux's lil' helper


Joined: 21 Nov 2005
Posts: 103

PostPosted: Fri Oct 20, 2006 12:36 pm    Post subject: Reply with quote

Hi dsd,
thank you for your response.
dsd wrote:
for vulnerability fixes you should always stick with the latest stable, we don't fix older versions

The terms "Latest Most Secure Version" and "Fixed Version" in my previous post were taken from the screenshots for KISS. With "Oldest stable version" I mean the oldest stable version that still remains in the current portage tree after a security bump (or the stabilisation of a newer fixed version). I understand that not every minor security vulnerability requires a stabilisation of a not well tested new version if the vulnerability is more theoretical and not remotely exploitable. Therefore the "Latest Most Secure Version" is not necessary the newest stable version but could be the newest unstable version? And if there is a fixed stable version in the tree, all unfixed versions get removed from the tree? Let us look for example at hardened-sources because I'm using these sources (and know nothing about others). There are four stable 2.6.* versions in the tree at the time of writing:

hardened-sources-2.6.14-r7, 2.6.16-r10/r11, 2.6.17-r1

An excerpt from the Changelog regarding these four versions and the removed versions 2.6.14-r5/r8 in chronological order:
Code:
01 Feb 2006
  +hardened-sources-2.6.14-r5.ebuild: fixing every known exploit

14 Apr 2006
  -hardened-sources-2.6.14-r5.ebuild
  +hardened-sources-2.6.14-r7.ebuild: Fixes CVE-2006-0744, CVE-2006-0744, CVE-2006-1522, CVE-2006-1242

20 Apr 2006
  +hardened-sources-2.6.14-r8.ebuild: fix CVE-2006-1056, CVE-2006-1525, CVE-2006-1524

14 Jul 2006
  hardened-sources-2.6.16-r10.ebuild: marking stable on x86 and amd64

15 Jul 2006
  -hardened-sources-2.6.14-r8.ebuild; removed old crusty ebuilds
  +hardened-sources-2.6.16-r11.ebuild: - 2.6.16 bumped for CVE-2006-3626

07 Aug 2006
  hardened-sources-2.6.16-r11.ebuild:
  - stable on x86 and amd64

26 Aug 2006
  +hardened-sources-2.6.17-r1.ebuild:
  Revision bump to genpatches-2.6.17-8 and updating the grsecurity patch.

18 Oct 2006
    hardened-sources-2.6.17-r1.ebuild: - mark 2.6.17-r1 stable; - mark amd64 stable also. bug #151877

When 2.6.14-r8 (that fixes 3 CVEs) is removed from the tree, is the oldest stable version in the current tree (2.6.14-r7, released before the removed -r8 ) vulnerable for these CVEs? If yes, why is it still in the tree? Why is 2.6.16-r10 still in the tree, when 2.6.16-r11 is stable and fixes CVE-2006-3626?

Due to the rapid development (patches "flood") and the lack of a stable tree versioning, kernel-2.6.* seems to be a horror from a security point of view. All my best wishes and thanks to the Kernel and Security Team members who have to deal with this.
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sat Oct 21, 2006 3:26 am    Post subject: Reply with quote

on the kiss screenshots, the phrases "Latest Most Secure Version" and "Fixed Version" are in different contexts.

latest most secure is talking about the whole kernel, e.g. 2.6.16.26 is the latest most secure version of xbox-sources
fixed version is talking about individual security issues within a certain kernel, e.g. bug 133465 is fixed in version 2.6.16.18 of xbox-sources

the latest most secure version of xbox-sources is simply the 'highest' entry in the fixed version list for that particular kernel.

to answer your questions, there is no concept of a real security issue vs a theoretical non-exploitable issue. it's either a security issue in the mind of the kernel security guy, in which case it appears on KISS, or its not, in which case it doesn't appear there.

we do not mark significantly newer versions stable to pull in security fixes. if a security bug is found today in 2.6.17 which is fixed in 2.6.18, then we would not stable 2.6.18 in response, because that would result in a large change and we aren't quite ready for 2.6.18 to go stable yet. instead, we would backport the fix to the current stable branch (2.6.17) and mark the new version stable usually within 24 hours. yes, there will probably be a short period where the "latest most secure version" is not in the stable tree.

when fixing a kernel we don't immediately remove the older buggy versions from the tree. this is made difficult by the fact that the arch keywording is spread around and is slow to synchronize (when i update a kernel i can only mark it stable on x86, i have to ask arch teams to do the other keywords). also, some people are stuck with older kernels due to reasons like depending on a binary kernel module. we don't really support these users but we don't go out of our way to make things hard for them either (and typically security is not a concern for such users, they are inserting binary blobs into their kernel after all). having old kernels in the tree is also very useful for debugging. occasionally we get bugs like "-r3 had this issue but -r7 does not" and the fact that we have r4,r5,r6 still in the tree means that the user can test the intermediate releases with relative ease. that said, we do remove old kernels after some time to keep things clean-ish.

in your example, when 2.6.14-r8 is released, 2.6.14-r7 is left vulnerable to those security concerns. it is the users responsibility to upgrade. note that removing the ebuild is not a huge problem because portage will not give you an older version unless you explicitly ask for it, plus removing the ebuild would not accelerate the process of the user upgrading in any way.

there's another interesting point in your example which you didn't pick up on. there was a time when both hardened-sources 2.6.16 and 2.6.14 were being maintained and patched (i told you that we don't fix older versions). this was the choice of the maintainer at the time, but this stopped after a while. it resulted in a lot of work to keep things up to date, compare the size of the 2.6.14 patchset to the 2.6.18 one:
http://sources.gentoo.org/viewcvs.py/linux-patches/genpatches-2.6/historical/2.6.14/
http://sources.gentoo.org/viewcvs.py/linux-patches/genpatches-2.6/trunk/2.6.18/

the idea of maintaining old kernel branches like this is not something we are opposed to, but we lack the manpower to do it most of the time.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
kadeux
Tux's lil' helper
Tux's lil' helper


Joined: 21 Nov 2005
Posts: 103

PostPosted: Sat Oct 21, 2006 6:27 pm    Post subject: Reply with quote

Hi dsd,
thanks for the clarifications. Your explanations are very helpful to make my decisions regarding kernel updates more well-substantiated.

dsd wrote:
it is the users responsibility to upgrade.
Agreed.

dsd wrote:
(and typically security is not a concern for such users, they are inserting binary blobs into their kernel after all)

I've enjoyed this conclusion. :lol: (I read a discussion in the Gentoo Chat forum where several people (even a veteran forum member) are claiming they will stop using Gentoo if the binary driver gets removed due to a security vulnerability. Funny read.)

Have fun!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum