Heap buffer overflow in fgetwln function of libbsd
libbsd is a library to provide common functions from BSD systems on Linux.
libbsd 0.8.1 and earlier contains a buffer overflow in the function fgetwln(). An if checks if it is necessary to reallocate memory in the target buffer. However this check is off by one, therefore an out of bounds write happens.
Upstream has released version 0.8.2 to fix this.
I have checked where this function gets used. I didn't find any code using it, so I assume the impact is limited.
This bug was found with the help of Address Sanitizer.
Bug report
Git commit / fix
CVE-2016-2090
libbsd 0.8.1 and earlier contains a buffer overflow in the function fgetwln(). An if checks if it is necessary to reallocate memory in the target buffer. However this check is off by one, therefore an out of bounds write happens.
Upstream has released version 0.8.2 to fix this.
I have checked where this function gets used. I didn't find any code using it, so I assume the impact is limited.
This bug was found with the help of Address Sanitizer.
Bug report
Git commit / fix
CVE-2016-2090
Comments
Display comments as Linear | Threaded