Skip to contentSkip to conversation

Linux 2.6.22.16

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Jan 14, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

We (the -stable team) are announcing the release of the 2.6.22.16 kernel.

It contains a single fix for a problem that could cause a local user to cause file system corruption on some types of filesystems.

All users of the 2.6.22 series are encouraged to upgrade.

I'll also be replying to this message with a copy of the patch between 2.6.22.15 and 2.6.22.16

The updated 2.6.22.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.22.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.22.y.git;a=summary

thanks,

greg k-h

--------

 Makefile   |    2 +-
 fs/namei.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Summary of changes from v2.6.22.15 to v2.6.22.16
================================================

Greg Kroah-Hartman (1):

      Linux 2.6.22.16

Linus Torvalds (1):
Use access mode instead of open flags to determine needed permissions (CVE-2008-0001)

#1 lore raw
Makefile +1 -1
index a8bdcc6..99c0237 100644
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 22
-EXTRAVERSION = .15
+EXTRAVERSION = .16
 NAME = Holy Dancing Manatees, Batman!
 
 # *DOCUMENTATION*
fs/namei.c +2 -2
index 5e2d98d..8e209ce 100644
@@ -1543,7 +1543,7 @@ int may_open(struct nameidata *nd, int acc_mode, int flag)
 	if (S_ISLNK(inode->i_mode))
 		return -ELOOP;
 	
-	if (S_ISDIR(inode->i_mode) && (flag & FMODE_WRITE))
+	if (S_ISDIR(inode->i_mode) && (acc_mode & MAY_WRITE))
 		return -EISDIR;
 
 	error = vfs_permission(nd, acc_mode);
@@ -1562,7 +1562,7 @@ int may_open(struct nameidata *nd, int acc_mode, int flag)
 			return -EACCES;
 
 		flag &= ~O_TRUNC;
-	} else if (IS_RDONLY(inode) && (flag & FMODE_WRITE))
+	} else if (IS_RDONLY(inode) && (acc_mode & MAY_WRITE))
 		return -EROFS;
 	/*
 	 * An append-only file must be opened in append mode for writing.