Skip to content

Commit 53b0acb

Browse files
committed
Merge: net: ppp: Add bound checking for skb data on ppp_sync_txmung
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6837 JIRA: https://issues.redhat.com/browse/RHEL-89647 Upstream Status: linux.git CVE: CVE-2025-37749 Signed-off-by: Guillaume Nault <[email protected]> Approved-by: Antoine Tenart <[email protected]> Approved-by: Hangbin Liu <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: Augusto Caringi <[email protected]>
2 parents b5e7038 + 5b6fb9a commit 53b0acb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/net/ppp/ppp_synctty.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ ppp_sync_txmunge(struct syncppp *ap, struct sk_buff *skb)
506506
unsigned char *data;
507507
int islcp;
508508

509+
/* Ensure we can safely access protocol field and LCP code */
510+
if (!pskb_may_pull(skb, 3)) {
511+
kfree_skb(skb);
512+
return NULL;
513+
}
509514
data = skb->data;
510515
proto = get_unaligned_be16(data);
511516

0 commit comments

Comments
 (0)