Two memory leaks in the sja1105staticconfigupload() function in drivers/net/dsa/sja1105/sja1105spi.c in the Linux kernel before 5.3.5 allow attackers to cause a denial of service (memory consumption) by triggering staticconfigbufprepareforupload() or sja1105inhibit_tx() failures, aka CID-68501df92d11.