Commit 6607d4b
committed
tipc: Return non-zero value from tipc_udp_addr2str() on error
jira VULN-9011
cve CVE-2024-42284
commit-author Shigeru Yoshida <syoshida@redhat.com>
commit fa96c6b
tipc_udp_addr2str() should return non-zero value if the UDP media
address is invalid. Otherwise, a buffer overflow access can occur in
tipc_media_addr_printf(). Fix this by returning 1 on an invalid UDP
media address.
Fixes: d0f9193 ("tipc: add ip/udp media type")
Signed-off-by: Shigeru Yoshida <syoshida@redhat.com>
Reviewed-by: Tung Nguyen <tung.q.nguyen@endava.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit fa96c6b)
Signed-off-by: Shreeya Patel <spatel@ciq.com>1 parent 5cb8ea8 commit 6607d4b
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
0 commit comments