The nfs_permission function in fs/nfs/dir.c in the NFS client implementation in the Linux kernel 2.6.29.3 and earlier, when atomic_open is available, does not check execute (aka EXEC or MAY_EXEC) permission bits, which allows local users to bypass permissions and execute files, as demonstrated by files on an NFSv4 fileserver.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Linux_kernel | Linux | * | 2.6.29.3 (including) |
MRG for RHEL-5 | RedHat | kernel-rt-0:2.6.24.7-126.el5rt | * |
Red Hat Enterprise Linux 4 | RedHat | kernel-0:2.6.9-89.0.3.EL | * |
Red Hat Enterprise Linux 5 | RedHat | kernel-0:2.6.18-128.1.14.el5 | * |
Linux | Ubuntu | hardy | * |
Linux | Ubuntu | intrepid | * |
Linux | Ubuntu | jaunty | * |
Linux-source-2.6.15 | Ubuntu | dapper | * |