Skip to content

Commit 48bc034

Browse files
alexaringdavem330
authored andcommitted
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. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 98846e6 commit 48bc034

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/netns/ieee802154_6lowpan.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct netns_sysctl_lowpan {
1616
struct netns_ieee802154_lowpan {
1717
struct netns_sysctl_lowpan sysctl;
1818
struct netns_frags frags;
19-
u16 max_dsize;
19+
int max_dsize;
2020
};
2121

2222
#endif

0 commit comments

Comments
 (0)