Last updated 24 July 2024
Last updated 24 July 2024
Last updated 24 July 2024
Last updated 24 July 2024
Description of problem: If the owner of a PI futex dies we fix up the pistate and set pistate->owner to NULL. When a malicious or just sloppy programmed user space application sets the futex value to 0 e.g. by calling pthreadmutexinit(), then the futex can be acquired again. A new waiter manages to enqueue itself on the pistate w/o damage, but on unlock the kernel dereferences pistate->owner and oopses. Prevent this by checking pistate->owner in the unlock path. If pistate->owner is not current we know that user space manipulated the futex value. Ignore the mess and return -EINVAL. This catches the above case and also the case where a task hijacks the futex by setting the tid value and then tries to unlock it.
Upstream commit: http://git.kernel.org/linus/51246bfd189064079c54421507236fd2723b18f3
Note that pi-futex was introduced in: http://git.kernel.org/linus/c87e2837be82df479a6bae9f155c43516d2feebc
Description of problem: commit dce766af541f6605fa9889892c0280bab31c66ab Author: Florian Westphal <fwestphal> Date: Fri Jan 8 17:31:24 2010 +0100
netfilter: ebtables: enforce CAPNETADMIN normal users are currently allowed to set/modify ebtables rules. Restrict it to processes with CAPNETADMIN. Note that this cannot be reproduced with unmodified ebtables binary because it uses SOCKRAW. Signed-off-by: Florian Westphal <fwestphal> Cc: stable Signed-off-by: Patrick McHardy <kaber>
Upstream commit: http://git.kernel.org/linus/dce766af541f6605fa9889892c0280bab31c66ab
Quote from http://patchwork.ozlabs.org/patch/35412/: Commit 9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8 introduced a typo in initialization.
Description of problem: Three bytes of uninitialized kernel memory are currently leaked to user.
Upstream proposed patch: http://patchwork.ozlabs.org/patch/32830/
CVE request: http://article.gmane.org/gmane.comp.security.oss.general/2060
From Clement Lecigne: In function sockgetsockopt() located in net/core/sock.c, optval v.val is not correctly initialized and directly returned in userland in case we have SOBSDCOMPAT option set.
This dummy code should trigger the bug:
int main(void) { unsigned char buf[4] = { 0, 0, 0, 0 }; int len; int sock; sock = socket(33, 2, 2); getsockopt(sock, 1, SOBSDCOMPAT, &buf, &len); printf("%x%x%x%x\n", buf[0], buf[1], buf[2], buf[3]); close(sock); }
References: http://lkml.org/lkml/2009/2/11/374 http://lkml.org/lkml/2009/2/12/123 http://patchwork.kernel.org/patch/6816/
Fix inverted logic in skfpioctl(). Non-privileged users should not be able to clear the driver statistics.
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 607efea..9a00e55 100644 --- a/drivers/net/skfp/skfddi.c +++ b/drivers/net/skfp/skfddi.c @@ -1003,9 +1003,9 @@ static int skfpioctl(struct netdevice dev, struct ifreq rq, int cmd) break; case SKFPCLRSTATS: / Zero out the driver statistics / if (!capable(CAPNETADMIN)) { - memset(&lp->MacStat, 0, sizeof(lp->MacStat)); - } else { status = -EPERM; + } else { + memset(&lp->MacStat, 0, sizeof(lp->MacStat)); } break; default:
From Chris Evans:
It's a relatively minor signal issue where a child can send its parent process an arbitrary signal, even if the parent has a totally separate real and effective user id. This could be a nuisance in the case where long-running root daemons spawn direct child processes owned by untrusted users []. There may even be worse consequences if privileged processes have weak signal handling code for signals not normally triggerable by untrusted users.
Description of problem: knfsd crashes if you are using it to export shmemfs objects and run strict overcommit. In this situation the current->mm based modifier to the overcommit goes through a NULL pointer. We could simply check for NULL and skip the modifier but we've caught other real bugs in the past from mm being NULL here - cases where we did need a valid mm set up (eg the exec bug in 2005). To preserve the checks and get the logic we want shuffle the checking around and add a new helper to the vm security wrappers Also fix a current->mm reference in nommu that should use the passed mm
Upstream commit: nfsd: fix vm overcommit crash http://git.kernel.org/linus/731572d39fcd3498702eda4600db4c43d51e0b26 nfsd: fix vm overcommit crash fix #2 http://git.kernel.org/linus/1b79cd04fab80be61dcd2732e2423aafde9a4c1c
Reference: [PATCH] knfsd: add nfs-export support to tmpfs http://git.kernel.org/linus/91828a405ae454a9503c41a7744f6ff877a80714
Description of problem:
In kernel versions beginning with 2.6.15 and including 2.6.24-rc7, it is possible for unprivileged local users to truncate any directory for which they have write permission. This renders all the contents of the directory inaccessible. It is then possible (given appropriate privileges) to remove the apparently empty directory. This can orphan inodes that had their only link from that directory.
This issue description from LKML:
<cite>
Way back when (in commit 834f2a4a1554dc5b2598038b3fe8703defcbe467, aka "VFS: Allow the filesystem to return a full file pointer on open intent" to be exact), Trond changed the open logic to keep track of the original flags to a file open, in order to pass down the the intent of a dentry lookup to the low-level filesystem.
However, when doing that reorganization, it changed the meaning of nameiflags, and thus inadvertently changed the test of access mode for directories (and RO filesystem) to use the wrong flag. So fix those test back to use access mode ("accmode") rather than the open flag ("flag").
Issue noticed by Bill Roman at Datalight.
</cite>
There is also patch provided together with this issue:
patch 974a9f0b47da74e28f68b9c8645c3786aa5ace1a in mainline
Description of problem:
In 2.6.x and 2.4.x kernels, if a core file owned by a non root user exists and root runs a process that drops core in the same location, the original core file owned by the non root user is replaced with root's core dump, except the original owner maintains ownership of the core.
This one is public via:
http://bugzilla.kernel.org/showbug.cgi?id=3043
This one has not CVE number assigned yet, will attach it, as soon as this one gets one.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
The random number feature in Linux kernel 2.6 before 2.6.20.13, and 2.6.21.x before 2.6.21.4, (1) does not properly seed pools when there is no entropy, or (2) uses an incorrect cast when extracting entropy, which might cause the random number generator to provide the same values after reboots on systems without an entropy source.
CVE-2004-1073 is still an issue -- a patched PoC can still cause a coredump of a non-readable binary such as /usr/bin/sudo; PoC attached; the tweak is question is adding:
eph.pmemsz = 4097;
Run "./poc /usr/bin/sudo" and a "core" spits out -- WFM on a 2.6.17.x kernel.
To reproduce, do grab poc at the end of advisory. add line "eph.pmemsz = 4096;" after "eph.pfilesz = 4096;" where first "4096" is something equal to or greater than 4096. ./poc /usr/bin/sudo && ls -l
Here I get:
-rw------- 1 ad ad 102400 2007-01-15 19:17 core ---s--x--x 2 root root 101820 2007-01-15 19:15 /usr/bin/sudo
Check for MAYREAD as binfmtmisc.c does.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Mike O'Connor of SGI reported this flaw where a normal user who has access to write to a NFS mounted fs can panic an NFS client and therefore cause a local DoS using ODIRECT.
Quote:
Any ODIRECT write to an NFS file where the user buffer starts with a valid mapped page and contains an unmapped page, will crash in this way. I haven't followed the code, but ODIRECT reads with similar user buffers will probably also crash albeit in different ways.
Details: when nfsgetuserpages() calls getuserpages(), it detects and correctly handles getuserpages() returning an error, which happens if the first page covered by the user buffer's address range is unmapped. However, if the first page is mapped but some subsequent page isn't, getuserpages() will return a positive number which is less than the number of pages requested (this behaviour is sort of analagous to a short write() call and appears to be intentional). nfsgetuserpages() doesn't detect this and hands off the array of pages (whose last few elements are random rubbish from the newly allocated array memory) to it's caller, whence they go to nfsdirectwriteseg(), which then totally ignores the nrpages it's given, and calculates its own idea of how many pages are in the array from the user buffer length. Needless to say, when it comes to transmit those uninitialised page pointers, we see a crash in the network stack.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
dm-crypt in Linux kernel 2.6.15 and earlier does not clear a structure before it is freed, which leads to a memory disclosure that could allow local users to obtain sensitive information about a cryptographic key.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.