netfilter: nf_tables: fix memory leak during stateful obj update
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix memory leak during stateful obj update stateful objects can be updated from the control plane. The transaction logic allocates a temporary object for this purpose. The ->init function was called for this object, so plain kfree() leaks resources. We must call ->destroy function of the object. nft_obj_destroy does this, but it also decrements the module refcount, but the update path doesn't increment it. To avoid special-casing the update object release, do module_get for the update case too and release it via nft_obj_destroy().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.103, 5.15.26, 5.16.12, 5.4.182
- CVEs
- CVE-2022-48933
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 11:38 UTC · Revision 1
Source evidence
netfilter: nf_tables: fix memory leak during stateful obj update
core-osv · Original sourcePublished 22 Aug 2024, 03:31 UTC
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix memory leak during stateful obj update stateful objects can be updated from the control plane. The transaction logic allocates a temporary object for this purpose. The ->init function was called for this object, so plain kfree() leaks resources. We must call ->destroy function of the object. nft_obj_destroy does this, but it also decrements the module refcount, but the update path doesn't increment it. To avoid special-casing the update object release, do module_get for the update case too and release it via nft_obj_destroy().
osv:CVE-2022-48933
Kernel
Fixed versions: 5.4.182, 5.10.103, 5.15.26, 5.16.12
Complete source record
{
"id": "adf2b3e872e4b036cb7200acbdba08e1547d5cc41a4ab314d4179212409f7adb",
"url": "https://osv.dev/vulnerability/CVE-2022-48933",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "netfilter: nf_tables: fix memory leak during stateful obj update",
"summary": "In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix memory leak during stateful obj update stateful objects can be updated from the control plane. The transaction logic allocates a temporary object for this purpose. The ->init function was called for this object, so plain kfree() leaks resources. We must call ->destroy function of the object. nft_obj_destroy does this, but it also decrements the module refcount, but the update path doesn't increment it. To avoid special-casing the update object release, do module_get for the update case too and release it via nft_obj_destroy().",
"evidence": "osv:CVE-2022-48933",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.182",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.103",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.26",
"evidence": "/affected/1/ranges"
},
{
"value": "5.16.12",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-48933",
"aliases": [
"CVE-2022-48933"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d62d0ba97b5803183e70cfded7f7b9da76893bf5"
},
{
"fixed": "53026346a94c43f35c32b18804041bc483271d87"
},
{
"fixed": "7e9880e81d3fd6a43c202f205717485290432826"
},
{
"fixed": "e96e204ee6fa46702f6c94c3c69a09e69e0eac52"
},
{
"fixed": "34bb90e407e3288f610558beaae54ecaa32b11c4"
},
{
"fixed": "dad3bdeef45f81a6e90204bcc85360bb76eccec7"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48933.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.4.0"
},
{
"fixed": "5.4.182"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.103"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.26"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.16.12"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48933.json"
}
}
],
"modified": "2026-10-28T02:30:50.923502611Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/34bb90e407e3288f610558beaae54ecaa32b11c4",
"https://git.kernel.org/stable/c/53026346a94c43f35c32b18804041bc483271d87",
"https://git.kernel.org/stable/c/7e9880e81d3fd6a43c202f205717485290432826",
"https://git.kernel.org/stable/c/dad3bdeef45f81a6e90204bcc85360bb76eccec7",
"https://git.kernel.org/stable/c/e96e204ee6fa46702f6c94c3c69a09e69e0eac52",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48933.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-48933",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48933.json"
}
},
"related_cves": [
{
"value": "CVE-2022-48933",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 519154,
"published_at": "2024-08-22T03:31:27.165+00:00"
}