search for: hwac_str

Displaying 1 result from an estimated 1 matches for "hwac_str".

Did you mean: hwmac_str
2025 Jan 16
0
[Bug 1786] New: ulogd_filter_HWHRD out of bounds array access in hwmac_str
...ription: Ubuntu 24.04.1 LTS Release: 24.04 Codename: noble It seems that there is an out of bounds array access in ulogd_filter_HWHDR.c which leads to ulogd2 being terminated with SIGABRT and the following message when it is compiled with -D_FORTIFY_SOURCE=3: *** buffer overflow detected *** The hwac_str array is defined as: static char hwmac_str[MAX_KEY - START_KEY][HWADDR_LENGTH]; Which translates to: static char hwmac_str[4 - 2][128]; i.e. an array of two elements, valid indexes 0, 1. Adding a debug print statement in the parse_mac2str function: fprintf(stderr, "using hwmac_str...