Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 222249

Summary: Kernel: NFS: Possible NULL pointer dereference in fs/nfs/super.c (GENERIC-MAP-NOMATCH)
Product: Gentoo Security Reporter: Gordon Malm (RETIRED) <gengor>
Component: KernelAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: normal CC: kernel
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=63649bd7080a6a50fabcb1935f4b7c4e64155066
Whiteboard: [linux >=2.6.25 <2.6.26]
Package list:
Runtime testing required: ---

Description Gordon Malm (RETIRED) gentoo-dev 2008-05-15 12:37:01 UTC
There is possible NULL pointer dereference if kstr[n]dup failed.

http://www.gossamer-threads.com/lists/linux/kernel/906985
http://www.gossamer-threads.com/lists/linux/kernel/910259
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=63649bd7080a6a50fabcb1935f4b7c4e64155066

The latest Linux Kernel (2.6.25.3) is affected so previous kernels could be as well.

Reproducible: Always
Comment 1 Gordon Malm (RETIRED) gentoo-dev 2008-05-15 17:50:17 UTC
Only the part of the patch addressing nfs_server.export_path lead to a possible NULL ptr (the rest is just secure programming practice).
See: http://www.gossamer-threads.com/lists/linux/kernel/906343

That being the case, looks like only 2.6.25 is affected.  2.6.24 and prior use strncpy carefully to assign mntpath (nfs_server.export_path in 2.6.25) in nfs4_validate_mount_data.

Need a real programmer to check my statements for accuracy to be sure.