Issue
The R_RMAC_Read function does not check the size of the buffer passed as p_buffer. If the user provides a buffer which is smaller than ether_buffer_size in ether_cfg_t there is a possibility to overflow the buffer.
Workaround
Ensure buffers passed to R_RMAC_Read are larger than ether_buffer_size in ether_cfg_t.
Acknowledgement
Renesas would like to thank SecMate for responsibly reporting these findings.
Issue
The
R_RMAC_Readfunction does not check the size of the buffer passed asp_buffer. If the user provides a buffer which is smaller thanether_buffer_sizeinether_cfg_tthere is a possibility to overflow the buffer.Workaround
Ensure buffers passed to
R_RMAC_Readare larger thanether_buffer_sizeinether_cfg_t.Acknowledgement
Renesas would like to thank SecMate for responsibly reporting these findings.