CVE-2024-41066

Source
https://cve.org/CVERecord?id=CVE-2024-41066
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-41066.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-41066
Downstream
Related
Published
2024-07-29T14:57:27.832Z
Modified
2026-03-13T07:56:08.863872Z
Summary
ibmvnic: Add tx check to prevent skb leak
Details

In the Linux kernel, the following vulnerability has been resolved:

ibmvnic: Add tx check to prevent skb leak

Below is a summary of how the driver stores a reference to an skb during transmit: txbuff[freemap[consumerindex]]->skb = newskb; freemap[consumerindex] = IBMVNICINVALIDMAP; consumerindex ++; Where variable data looks like this: freemap == [4, IBMVNICINVALIDMAP, IBMVNICINVALIDMAP, 0, 3] consumerindex^ txbuff == [skb=null, skb=<ptr>, skb=<ptr>, skb=null, skb=null]

The driver has checks to ensure that freemap[consumerindex] pointed to a valid index but there was no check to ensure that this index pointed to an unused/null skb address. So, if, by some chance, our freemap and txbuff lists become out of sync then we were previously risking an skb memory leak. This could then cause tcp congestion control to stop sending packets, eventually leading to ETIMEDOUT.

Therefore, add a conditional to ensure that the skb address is null. If not then warn the user (because this is still a bug that should be patched) and free the old pointer to prevent memleak/tcp problems.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41066.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
65d6470d139a6c1655fccb5cbacbeaba8e8ad2f8
Fixed
16ad1557cae582e79bb82dddd612d9bdfaa11d4c
Fixed
267c61c4afed0ff9a2e83462abad3f41d8ca1f06
Fixed
e7b75def33eae61ddaad6cb616c517dc3882eb2a
Fixed
0983d288caf984de0202c66641577b739caad561
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
1a64564eee05128f773930649edfdd50cbe80656
Last affected
5142c39253385702a4de8f897027e1d76fc333de

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-41066.json"