CVE-2024-41066

Source
https://cve.org/CVERecord?id=CVE-2024-41066
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-41066.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-41066
Downstream
AZL (1)
BELL (1)
CLSA (4)
DEBIAN (1)
MGASA (2)
OESA (4)
RHSA (5)
RLSA (2)
ROOT (1)
SUSE (11)
UBUNTU (1)
Related
Published
2024-07-29T14:57:27Z
Modified
2026-10-08T02:48:33Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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: tx_buff[free_map[consumer_index]]->skb = new_skb; free_map[consumer_index] = IBMVNIC_INVALID_MAP; consumer_index ++; Where variable data looks like this: free_map == [4, IBMVNIC_INVALID_MAP, IBMVNIC_INVALID_MAP, 0, 3] consumer_index^ tx_buff == [skb=null, skb=, skb=, skb=null, skb=null]

The driver has checks to ensure that free_map[consumer_index] 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 free_map and tx_buff 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
5.12.17
Fixed
5.13
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5.13.2
Fixed
5.14
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1a64564eee05128f773930649edfdd50cbe80656
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5142c39253385702a4de8f897027e1d76fc333de

Affected versions

v5.*
v5.12.17
v5.12.18
v5.12.19
v5.13.10
v5.13.11
v5.13.12
v5.13.13
v5.13.14
v5.13.15
v5.13.16
v5.13.17
v5.13.18
v5.13.19
v5.13.2
v5.13.3
v5.13.4
v5.13.5
v5.13.6
v5.13.7
v5.13.8
v5.13.9

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.14.0
Fixed
6.1.101
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.42
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.9.11

Database specific

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