lkml.org 
[lkml]   [2013]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/9] hfs: Known exploit detection for CVE-2011-4330
Date
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


\
 
 \ /
  Last update: 2013-12-12 18:41    [W:0.264 / U:8.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site