In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]fpga: fix potential null pointer deref in fpga_mgr_test_img_load_sgt()[EOL][EOL]fpga_mgr_test_img_load_sgt() allocates memory for sgt using[EOL]kunit_kzalloc() however it does not check if the allocation failed.[EOL]It then passes sgt to sg_alloc_table(), which passes it to[EOL]__sg_alloc_table(). This function calls memset() on sgt in an attempt to[EOL]zero it out. If the allocation fails then sgt will be NULL and the[EOL]memset will trigger a NULL pointer dereference.[EOL][EOL]Fix this by checking the allocation with KUNIT_ASSERT_NOT_ERR_OR_NULL(). CREATE(Triage):(User=admin) [CVE-2025-38274 (https://nvd.nist.gov/vuln/detail/CVE-2025-38274)