Commit 9e8742c
committed
Bluetooth: ISO: Fix not validating setsockopt user input
Check user input length before copying data.
Fixes: ccf74f2 ("Bluetooth: Add BTPROTO_ISO socket type")
Fixes: 0731c5a ("Bluetooth: ISO: Add support for BT_PKT_STATUS")
Fixes: f764a6c ("Bluetooth: ISO: Add broadcast support")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent 4f39512 commit 9e8742c
1 file changed
Lines changed: 12 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | | - | |
| 1503 | + | |
1504 | 1504 | | |
1505 | 1505 | | |
1506 | 1506 | | |
| |||
1515 | 1515 | | |
1516 | 1516 | | |
1517 | 1517 | | |
1518 | | - | |
1519 | | - | |
| 1518 | + | |
| 1519 | + | |
1520 | 1520 | | |
1521 | | - | |
1522 | 1521 | | |
1523 | 1522 | | |
1524 | 1523 | | |
| |||
1527 | 1526 | | |
1528 | 1527 | | |
1529 | 1528 | | |
1530 | | - | |
1531 | | - | |
| 1529 | + | |
| 1530 | + | |
1532 | 1531 | | |
1533 | | - | |
1534 | 1532 | | |
1535 | 1533 | | |
1536 | 1534 | | |
| |||
1545 | 1543 | | |
1546 | 1544 | | |
1547 | 1545 | | |
1548 | | - | |
1549 | | - | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
| 1546 | + | |
| 1547 | + | |
1557 | 1548 | | |
1558 | | - | |
1559 | 1549 | | |
1560 | 1550 | | |
1561 | 1551 | | |
| |||
1570 | 1560 | | |
1571 | 1561 | | |
1572 | 1562 | | |
1573 | | - | |
| 1563 | + | |
1574 | 1564 | | |
1575 | 1565 | | |
1576 | 1566 | | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
1581 | 1570 | | |
1582 | | - | |
1583 | 1571 | | |
1584 | | - | |
| 1572 | + | |
1585 | 1573 | | |
1586 | 1574 | | |
1587 | 1575 | | |
| |||
0 commit comments