Skip to content

Commit 0597d1b

Browse files
hartkoppdavem330
authored andcommitted
can-bcm: fix minor heap overflow
On 64-bit platforms the ASCII representation of a pointer may be up to 17 bytes long. This patch increases the length of the buffer accordingly. http://marc.info/?l=linux-netdev&m=128872251418192&w=2 Reported-by: Dan Rosenberg <drosenberg@vsecurity.com> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> CC: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6c4f199 commit 0597d1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/can/bcm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ struct bcm_sock {
125125
struct list_head tx_ops;
126126
unsigned long dropped_usr_msgs;
127127
struct proc_dir_entry *bcm_proc_read;
128-
char procname [9]; /* pointer printed in ASCII with \0 */
128+
char procname [20]; /* pointer printed in ASCII with \0 */
129129
};
130130

131131
static inline struct bcm_sock *bcm_sk(const struct sock *sk)

0 commit comments

Comments
 (0)