CVE-2024-50145

Source
https://cve.org/CVERecord?id=CVE-2024-50145
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50145.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50145
Downstream
Related
Published
2024-11-07T09:31:22.202Z
Modified
2026-03-11T07:47:19.188057Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
octeon_ep: Add SKB allocation failures handling in __octep_oq_process_rx()
Details

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

octeon_ep: Add SKB allocation failures handling in _octepoqprocessrx()

build_skb() returns NULL in case of a memory allocation failure so handle it inside _octepoqprocessrx() to avoid NULL pointer dereference.

_octepoqprocessrx() is called during NAPI polling by the driver. If skb allocation fails, keep on pulling packets out of the Rx DMA queue: we shouldn't break the polling immediately and thus falsely indicate to the octepnapipoll() that the Rx pressure is going down. As there is no associated skb in this case, don't process the packets and don't push them up the network stack - they are skipped.

Helper function is implemented to unmmap/flush all the fragment buffers used by the dropped packet. 'alloc_failures' counter is incremented to mark the skb allocation error in driver statistics.

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50145.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
37d79d0596062057f588bdbb2ebad5455a43d353
Fixed
09ce491112bbf0b866e2638d3e961c1c73d1f00b
Fixed
c2d2dc4f88bb3cfc4f3cc320fd3ff51b0ae5b0ea
Fixed
2dedcb6f99f4c1a11944e7cc35dbeb9b18a5cbac
Fixed
eb592008f79be52ccef88cd9a5249b3fc0367278

Database specific

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