Bug 726064 (CVE-2011-2942) - VUL-0: CVE-2011-2942: kernel: clock_gettime() panic
Summary: VUL-0: CVE-2011-2942: kernel: clock_gettime() panic
Status: RESOLVED FIXED
Alias: CVE-2011-2942
Product: SUSE Security Incidents
Classification: Novell Products
Component: General (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Deadline: 2013-11-20
Assignee: Security Team bot
QA Contact: E-mail List
URL:
Whiteboard: maint:released:sle10-sp3:44725 maint:...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 09:30 UTC by Sebastian Krahmer
Modified: 2017-04-04 17:58 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
backport for 10sp4 (1.42 KB, patch)
2011-11-28 08:58 UTC, Michal Hocko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Krahmer 2011-10-24 09:30:47 UTC
Via OSS-sec:

Date: Mon, 24 Oct 2011 17:16:32 +0800
From: Eugene Teo
To: oss-security


CVE-2011-2942; In the br_forward_finish() function, we may call kfree()
on the skb we are forwarding, and so, after it, we should not
dereference skb->dev pointer. With the fix, we save skb->dev before
calling the br_forward_finish() function, so that we can use it
afterwards. It's a regression from a commit that we have backported to
our kernels. It doesn't affect the upstream kernel as the code was
rewritten.

https://bugzilla.redhat.com/CVE-2011-2942
https://www.redhat.com/security/data/cve/CVE-2011-2942.html

CVE-2011-3209; divide error issue in the clock implementation.

http://git.kernel.org/linus/f8bd2258e2d520dff28c855658bd24bdafb5102d
https://bugzilla.redhat.com/CVE-2011-3209
https://www.redhat.com/security/data/cve/CVE-2011-3209.html

Thanks, Eugene
--
Eugene Teo / Red Hat Security Response Team
Comment 1 Marcus Meissner 2011-10-25 12:18:31 UTC
CVE-2011-2942: redhat specific. I looked through sles10 and sles111 br_forward_finish() and its callers apparently do not use skb->dev after calling it.


CVE-2011-3209: While the precondition is not triggerable by a user, the actual exploit is ... so it should be fixed.
Comment 2 Michal Hocko 2011-10-27 15:27:08 UTC
(In reply to comment #1)
[...]
> CVE-2011-3209: While the precondition is not triggerable by a user, the actual
> exploit is ... so it should be fixed.

The fix is from 2008... SLE11-SP1 doesn't have div_long_long_rem and SLES10SP4 doesn't have the optimized version of the function and uses do_div instead.
So are we affected?
Comment 4 Marcus Meissner 2011-11-25 09:47:31 UTC
perl /suse/meissner/bin/addnote CVE-2011-2942 "This problem only affects Redhat kernels. We cross checked that SUSE Linux Enterprise kernels are not affected by this problem."
Comment 5 Marcus Meissner 2011-11-25 10:11:03 UTC
@mhocko  I am wondering if your evaluation is right...

I see that sles10 sp4 has:

./include/asm-i386/div64.h:

#define div_long_long_rem(a,b,c) div_ll_X_l_rem(a,b,c)

static inline long
div_ll_X_l_rem(long long divs, long div, long *rem)
{
        long dum2;
      __asm__("divl %2":"=a"(dum2), "=d"(*rem)
      : "rm"(div), "A"(divs));

        return dum2;

}


and I think it is the version that would cause the problem here.

So I think sles10 sp4 might still be affected.
Comment 6 Michal Hocko 2011-11-25 10:26:35 UTC
You are right, Marcus. I have overlooked i386 case. Maybe we should just remove this definition and use the include/linux/calc64.h fallback?
Comment 7 Marcus Meissner 2011-11-25 10:31:21 UTC
sounds like a good idea to keep the changes minimal
Comment 9 Michal Hocko 2011-11-28 08:58:43 UTC
Created attachment 464252 [details]
backport for 10sp4

Marcus, could you double check the patch?
We will still use do_div implementation from include/asm-i386/div64.h but I guess we should be safe.
Comment 10 Marcus Meissner 2011-11-29 16:46:24 UTC
looks good to me.
Comment 11 Michal Hocko 2011-12-01 10:35:58 UTC
OK, pushed to SLES10_SP4_BRANCH and SLES10-SP3-TD branches. I guess not worth to push it into SLES10_SP3_LTSS, right?
Comment 12 Marcus Meissner 2011-12-04 15:17:06 UTC
No, it is not necessary for LTSS as there is quite low impact.
Comment 13 Michal Hocko 2011-12-05 08:59:16 UTC
OK, then we are done.
Comment 14 Swamp Workflow Management 2011-12-28 16:35:24 UTC
The SWAMPID for this issue is 44724.
This issue was rated as moderate.
Please submit fixed packages until 2012-01-11.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 15 Swamp Workflow Management 2011-12-29 16:11:05 UTC
The SWAMPID for this issue is 44724.
This issue was rated as moderate.
Please submit fixed packages until 2012-01-11.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 16 Swamp Workflow Management 2012-01-05 11:14:58 UTC
Update released for: kernel-debug, kernel-debug-debuginfo, kernel-default, kernel-default-debuginfo, kernel-kdump, kernel-kdump-debuginfo, kernel-smp, kernel-smp-debuginfo, kernel-source, kernel-source-debuginfo, kernel-syms, kernel-xen, kernel-xen-debuginfo
Products:
SLE-SERVER 10-SP3-TERADATA (x86_64)
Comment 17 Swamp Workflow Management 2012-01-09 14:06:58 UTC
The SWAMPID for this issue is 44839.
This issue was rated as moderate.
Please submit fixed packages until 2012-01-23.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 18 Swamp Workflow Management 2012-01-23 15:18:16 UTC
Update released for: kernel-default, kernel-default-debuginfo, kernel-iseries64, kernel-iseries64-debuginfo, kernel-kdump, kernel-kdump-debuginfo, kernel-ppc64, kernel-ppc64-debuginfo, kernel-source, kernel-source-debuginfo, kernel-syms
Products:
SLE-DEBUGINFO 10-SP4 (ppc)
SLE-SDK 10-SP4 (ppc)
SLE-SERVER 10-SP4 (ppc)
Comment 19 Swamp Workflow Management 2012-01-23 15:48:22 UTC
Update released for: kernel-debug, kernel-debug-debuginfo, kernel-default, kernel-default-debuginfo, kernel-kdump, kernel-kdump-debuginfo, kernel-smp, kernel-smp-debuginfo, kernel-source, kernel-source-debuginfo, kernel-syms, kernel-xen, kernel-xen-debuginfo
Products:
SLE-DEBUGINFO 10-SP4 (x86_64)
SLE-DESKTOP 10-SP4 (x86_64)
SLE-SDK 10-SP4 (x86_64)
SLE-SERVER 10-SP4 (x86_64)
Comment 20 Swamp Workflow Management 2012-01-23 16:03:23 UTC
Update released for: kernel-debug, kernel-debug-debuginfo, kernel-default, kernel-default-debuginfo, kernel-source, kernel-source-debuginfo, kernel-syms
Products:
SLE-DEBUGINFO 10-SP4 (ia64)
SLE-SDK 10-SP4 (ia64)
SLE-SERVER 10-SP4 (ia64)
Comment 21 Marcus Meissner 2012-01-23 16:37:17 UTC
We have just released a kernel update fixing/mentioning this bug. The released kernel version is 2.6.16.60-0.93.1. (s390x: 2.6.16.60-0.95.1).
Comment 22 Swamp Workflow Management 2012-01-24 04:18:22 UTC
Update released for: kernel-default, kernel-default-debuginfo, kernel-source, kernel-syms
Products:
SLE-DEBUGINFO 10-SP4 (s390x)
SLE-SERVER 10-SP4 (s390x)
Comment 23 Swamp Workflow Management 2012-01-24 05:28:33 UTC
Update released for: kernel-bigsmp, kernel-bigsmp-debuginfo, kernel-debug, kernel-debug-debuginfo, kernel-default, kernel-default-debuginfo, kernel-kdump, kernel-kdump-debuginfo, kernel-kdumppae, kernel-kdumppae-debuginfo, kernel-smp, kernel-smp-debuginfo, kernel-source, kernel-source-debuginfo, kernel-syms, kernel-syms-debuginfo, kernel-vmi, kernel-vmi-debuginfo, kernel-vmipae, kernel-vmipae-debuginfo, kernel-xen, kernel-xen-debuginfo, kernel-xenpae, kernel-xenpae-debuginfo
Products:
SLE-DEBUGINFO 10-SP4 (i386)
SLE-DESKTOP 10-SP4 (i386)
SLE-SDK 10-SP4 (i386)
SLE-SERVER 10-SP4 (i386)
Comment 24 Swamp Workflow Management 2013-11-06 14:41:56 UTC
The SWAMPID for this issue is 54954.
This issue was rated as moderate.
Please submit fixed packages until 2013-11-20.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 25 Swamp Workflow Management 2013-12-06 23:49:57 UTC
Update released for: kernel-default, kernel-default-debuginfo, kernel-source, kernel-syms
Products:
SLE-DEBUGINFO 10-SP3 (s390x)
SLE-SERVER 10-SP3-LTSS (s390x)
Comment 26 Swamp Workflow Management 2013-12-07 01:44:47 UTC
Update released for: kernel-bigsmp, kernel-bigsmp-debuginfo, kernel-debug, kernel-debug-debuginfo, kernel-default, kernel-default-debuginfo, kernel-kdump, kernel-kdump-debuginfo, kernel-kdumppae, kernel-kdumppae-debuginfo, kernel-smp, kernel-smp-debuginfo, kernel-source, kernel-source-debuginfo, kernel-syms, kernel-syms-debuginfo, kernel-vmi, kernel-vmi-debuginfo, kernel-vmipae, kernel-vmipae-debuginfo, kernel-xen, kernel-xen-debuginfo, kernel-xenpae, kernel-xenpae-debuginfo
Products:
SLE-DEBUGINFO 10-SP3 (i386)
SLE-SERVER 10-SP3-LTSS (i386)