| From | vegard.nossum@oracle ... | Subject | [PATCH 3/9] hfs: Known exploit detection for CVE-2011-4330 | Date | Thu, 12 Dec 2013 17:52:26 +0100 |
| |
From: Vegard Nossum <vegard.nossum@oracle.com>
See bc5b8a9003132ae44559edd63a1623b7b99dfb68.
Cc: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> --- fs/hfs/trans.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fs/hfs/trans.c b/fs/hfs/trans.c index b1ce4c7..2fe83f0 100644 --- a/fs/hfs/trans.c +++ b/fs/hfs/trans.c @@ -11,6 +11,7 @@ #include <linux/types.h> #include <linux/nls.h> +#include <linux/exploit.h> #include "hfs_fs.h" @@ -40,8 +41,10 @@ int hfs_mac2asc(struct super_block *sb, char *out, const struct hfs_name *in) src = in->name; srclen = in->len; - if (srclen > HFS_NAMELEN) + if (srclen > HFS_NAMELEN) { + exploit("CVE-2011-4330"); srclen = HFS_NAMELEN; + } dst = out; dstlen = HFS_MAX_NAMELEN; if (nls_io) { -- 1.7.10.4
|