Commit b218606
committed
Bluetooth: hci_sock: Fix not validating setsockopt user input
Check user input length before copying data.
Fixes: 09572fc ("Bluetooth: hci_sock: Add support for BT_{SND,RCV}BUF")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent 9e8742c commit b218606
1 file changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1946 | 1946 | | |
1947 | 1947 | | |
1948 | 1948 | | |
1949 | | - | |
1950 | | - | |
| 1949 | + | |
| 1950 | + | |
1951 | 1951 | | |
1952 | | - | |
1953 | 1952 | | |
1954 | 1953 | | |
1955 | 1954 | | |
| |||
1958 | 1957 | | |
1959 | 1958 | | |
1960 | 1959 | | |
1961 | | - | |
1962 | | - | |
| 1960 | + | |
| 1961 | + | |
1963 | 1962 | | |
1964 | | - | |
1965 | 1963 | | |
1966 | 1964 | | |
1967 | 1965 | | |
| |||
1979 | 1977 | | |
1980 | 1978 | | |
1981 | 1979 | | |
1982 | | - | |
1983 | | - | |
1984 | | - | |
| 1980 | + | |
| 1981 | + | |
1985 | 1982 | | |
1986 | | - | |
1987 | 1983 | | |
1988 | 1984 | | |
1989 | 1985 | | |
| |||
2042 | 2038 | | |
2043 | 2039 | | |
2044 | 2040 | | |
2045 | | - | |
2046 | | - | |
| 2041 | + | |
| 2042 | + | |
2047 | 2043 | | |
2048 | | - | |
2049 | 2044 | | |
2050 | 2045 | | |
2051 | 2046 | | |
| |||
0 commit comments