mint0x33/drivers/net/ethernet
Natalia Petrova c9aec733df i40e: Add checking for null for nlmsg_find_attr()
[ Upstream commit 7fa0b526f865cb42aa33917fd02a92cb03746f4d ]

The result of nlmsg_find_attr() 'br_spec' is dereferenced in
nla_for_each_nested(), but it can take NULL value in nla_find() function,
which will result in an error.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 51616018dd ("i40e: Add support for getlink, setlink ndo ops")
Signed-off-by: Natalia Petrova <n.petrova@fintech.ru>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20230209172833.3596034-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-22 12:46:07 +01:00
..
3com
8390
adaptec
adi
aeroflex ethernet: aeroflex: fix potential skb leak in greth_init_rings() 2022-12-14 11:26:15 +01:00
agere
alacritech
allwinner net: allwinner: Fix some resources leak in the error handling path of the probe and in the remove function 2020-12-29 13:47:02 +01:00
alteon
altera net: altera: Fix refcount leak in altera_tse_mdio_create 2022-06-14 16:53:59 +02:00
amazon net: ena: set initial DMA width to avoid intel iommu issue 2020-12-02 08:34:43 +01:00
amd amd-xgbe: TX Flow Ctrl Registers are h/w ver dependent 2023-02-06 07:46:28 +01:00
apm drivers: net: xgene: disable napi when register irq failed in xgene_enet_open() 2022-11-25 17:36:46 +01:00
apple net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave() 2023-01-18 09:26:19 +01:00
aquantia net: atlantic: verify hw_head_ lies within TX buffer ring 2022-05-25 08:41:21 +02:00
arc net: arc: select CRC32 2021-10-20 10:42:05 +02:00
atheros alx: Fix an error handling path in 'alx_probe()' 2021-06-30 08:48:50 -04:00
aurora
broadcom net: bgmac: fix BCM5358 support by setting correct flags 2023-02-22 12:46:06 +01:00
brocade drivers/net/ethernet: clean up unused assignments 2021-06-03 08:36:26 +02:00
cadence net: macb: Restart tx only if queue pointer is lagging 2022-04-27 13:15:30 +02:00
calxeda
cavium net: thunderx: Fix the ACPI memory leak 2022-12-08 11:16:30 +01:00
chelsio net: cxgb3_main: disable napi when bind qsets failed in cxgb_up() 2022-11-25 17:36:46 +01:00
cirrus
cisco net: enic: Cure the enic api locking trainwreck 2020-10-29 09:07:06 +01:00
davicom net: davicom: Fix regulator not turned off on failed probe 2021-04-28 12:08:42 +02:00
dec ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one() 2022-05-25 08:41:21 +02:00
dlink
emulex be2net: Fix buffer overflow in be_get_module_eeprom 2022-07-29 17:06:50 +02:00
ezchip net: ethernet: ezchip: fix error handling 2021-07-20 16:17:37 +02:00
faraday net: ftgmac100: Disable hardware checksum on AST2600 2022-06-06 08:20:56 +02:00
freescale net: fman: Unregister ethernet device on removal 2022-11-25 17:36:45 +01:00
fujitsu net: fujitsu: fix potential null-ptr-deref 2021-06-03 08:36:20 +02:00
hisilicon net: hisilicon: Fix potential use-after-free in hix5hd2_rx() 2022-12-14 11:26:15 +01:00
hp
huawei hinic: fix a bug of ndo_stop 2020-05-20 08:17:13 +02:00
i825xx lib82596: Fix IRQ check in sni_82596_probe 2022-01-27 09:01:01 +01:00
ibm net: ehea: fix possible memory leak in ehea_register_port() 2022-11-03 23:50:57 +09:00
intel i40e: Add checking for null for nlmsg_find_attr() 2023-02-22 12:46:07 +01:00
marvell net: mvneta: Fix an out of bounds check 2022-12-14 11:26:16 +01:00
mediatek net: ethernet: mtk_eth_soc: fix misuse of mem alloc interface netdev[napi]_alloc_frag 2022-06-25 11:46:43 +02:00
mellanox net: mlx5: eliminate anonymous module_init & module_exit 2023-02-06 07:46:29 +01:00
micrel net: ksz884x: fix missing pci_disable_device() on error in pcidev_init() 2022-11-03 23:50:56 +09:00
microchip net: encx24j600: Fix invalid logic in reading of MISTAT register 2022-12-14 11:26:14 +01:00
moxa net: moxa: fix UAF in moxart_mac_probe 2021-07-28 11:12:15 +02:00
myricom myri10ge: Fix an error handling path in myri10ge_probe() 2023-01-18 09:26:29 +01:00
natsemi natsemi: xtensa: fix section mismatch warnings 2021-12-08 08:46:55 +01:00
neterion ethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave() 2023-01-18 09:26:18 +01:00
netronome nfp: fix use-after-free in area_cache_get() 2023-01-18 09:26:05 +01:00
nuvoton
nvidia
nxp net: ethernet: lpc_eth: Handle error for clk_enable 2022-03-16 12:57:07 +01:00
oki-semi net: pch_gbe: fix potential memleak in pch_gbe_tx_queue() 2022-12-08 11:16:29 +01:00
packetengines
pasemi net: pasemi: fix error return code in pasemi_mac_open() 2020-12-08 10:17:34 +01:00
qlogic qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure 2023-01-18 09:26:40 +01:00
qualcomm net: qualcomm: fix QCA7000 checksum handling 2021-09-22 11:45:23 +02:00
rdc r6040: Fix kmemleak in probe and remove 2023-01-18 09:26:28 +01:00
realtek r8169: Avoid memcpy() over-reading of ETH_SS_STATS 2021-06-30 08:48:58 -04:00
renesas net: ravb: Fix possible hang if RIS2_QFF1 happen 2023-02-06 07:46:32 +01:00
rocker ethernet: rocker: fix sleep in atomic context bug in neigh_timer_handler 2022-09-15 12:23:49 +02:00
samsung net: sxgbe: fix return value of __setup handler 2022-03-08 19:01:57 +01:00
seeq
sfc sfc: fix kernel panic when creating VF 2022-07-21 20:42:45 +02:00
sgi
silan
sis sis900: Fix missing pci_disable_device() in probe and remove 2021-08-04 12:22:17 +02:00
smsc smsc911x: allow using IRQ0 2022-05-12 12:17:10 +02:00
stmicro net: stmmac: Restrict warning on disabling DMA store and fwd mode 2023-02-22 12:46:06 +01:00
sun net: sunhme: Fix packet reception for len < RX_COPY_THRESHOLD 2022-09-28 10:56:51 +02:00
synopsys drivers/net/ethernet: clean up unused assignments 2021-06-03 08:36:26 +02:00
tehuti net: tehuti: fix error return code in bdx_probe() 2021-03-30 14:40:08 +02:00
ti net: ethernet: ti: Fix return type of netcp_ndo_start_xmit() 2023-01-18 09:26:31 +01:00
tile
toshiba net: spider_net: Fix the size used in a 'dma_free_coherent()' call 2020-08-21 09:48:12 +02:00
tundra
via drivers/net/ethernet: clean up unused assignments 2021-06-03 08:36:26 +02:00
wiznet net: w5100: check return value after calling platform_get_resource() 2021-09-22 11:45:32 +02:00
xilinx net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave() 2023-01-18 09:26:19 +01:00
xircom
xscale
dnet.c net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave() 2023-01-18 09:26:19 +01:00
dnet.h
ec_bhf.c net: ethernet: fix potential use-after-free in ec_bhf_remove 2021-06-30 08:48:51 -04:00
ethoc.c net: ethernet: Fix memleak in ethoc_probe 2021-01-12 20:09:07 +01:00
fealnx.c
jme.c
jme.h
Kconfig net: korina: select CRC32 2021-10-20 10:42:05 +02:00
korina.c net: korina: fix return value 2020-12-29 13:47:02 +01:00
lantiq_etop.c net: lantiq_etop: don't free skb when returning NETDEV_TX_BUSY 2022-11-03 23:50:55 +09:00
Makefile
netx-eth.c