Skip to contentSkip to conversation

ieee802154: reassembly: fix possible buffer overflow

PATCH Applied Alexander Aring 2 participants 2 messages Jun 29, 2014 – Jul 3, 2014

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

PATCH 1/1 ieee802154: reassembly: fix possible buffer overflow

The max_dsize attribute in ctl_table for lowpan_frags_ns_ctl_table is configured with integer accessing methods. This patch change the max_dsize attribute to int to avoid a possible buffer overflow.

---
 include/net/netns/ieee802154_6lowpan.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/netns/ieee802154_6lowpan.h +1 -1
index 079030c..e207096 100644
@@ -16,7 +16,7 @@ struct netns_sysctl_lowpan {
 struct netns_ieee802154_lowpan {
 	struct netns_sysctl_lowpan sysctl;
 	struct netns_frags	frags;
-	u16			max_dsize;
+	int			max_dsize;
 };
 
 #endif
Signature · 1 line
2.0.1
maintainer Applied
#1 lore raw

From: Alexander Aring <[email protected]>
Date: Sun, 29 Jun 2014 13:10:18 +0200

Quoted 5 lines

The max_dsize attribute in ctl_table for lowpan_frags_ns_ctl_table is configured with integer accessing methods. This patch change the max_dsize attribute to int to avoid a possible buffer overflow.

Applied, thanks.