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.
nftobjdestroy 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 moduleget for the update case too and release it via nftobj_destroy().
[
{
"id": "CVE-2022-48933-0ea64ee4",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "__nf_tables_abort"
},
"digest": {
"function_hash": "17712168349748767591176469069846155903",
"length": 3343.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9880e81d3fd6a43c202f205717485290432826",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-10ceb4a1",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "__nf_tables_abort"
},
"digest": {
"function_hash": "190979080702156889281693382955910476503",
"length": 3914.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dad3bdeef45f81a6e90204bcc85360bb76eccec7",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-1cf13e06",
"target": {
"file": "net/netfilter/nf_tables_api.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236833556880872245618340949794285045198",
"330575043823324330432759190824437027153",
"223926536909331343959341476133408014124",
"167805570128791565882814452117245739546",
"46007729443024369608178906395698228435",
"198370590929807835553495865655901910446",
"267112257704444579632412510329551793961",
"225317133291154392375917951497629700263",
"225180440523564634103919577288046595313",
"147964615409834485978679445735066675221",
"315429211979376375800202353816269310174",
"163155381218795741367435033383001469242",
"49785928235927113522571707070344438020",
"301365624491877464333113735538753892457",
"292713278195257590763936566122571351990",
"193657285374348390327932335897360475209",
"237789154843861306285851855004777114558",
"210329156760098529390531904526848084066",
"138274061687348408256646241796173054931",
"145168541512644729443567643386019089295"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dad3bdeef45f81a6e90204bcc85360bb76eccec7",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-27dc5ef8",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nft_obj_commit_update"
},
"digest": {
"function_hash": "118399125478225535164839100854874991475",
"length": 209.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34bb90e407e3288f610558beaae54ecaa32b11c4",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-2ae28cb6",
"target": {
"file": "net/netfilter/nf_tables_api.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236833556880872245618340949794285045198",
"330575043823324330432759190824437027153",
"223926536909331343959341476133408014124",
"167805570128791565882814452117245739546",
"46007729443024369608178906395698228435",
"198370590929807835553495865655901910446",
"267112257704444579632412510329551793961",
"225317133291154392375917951497629700263",
"225180440523564634103919577288046595313",
"147964615409834485978679445735066675221",
"315429211979376375800202353816269310174",
"163155381218795741367435033383001469242",
"49785928235927113522571707070344438020",
"301365624491877464333113735538753892457",
"292713278195257590763936566122571351990",
"193657285374348390327932335897360475209",
"237789154843861306285851855004777114558",
"210329156760098529390531904526848084066",
"138274061687348408256646241796173054931",
"145168541512644729443567643386019089295"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34bb90e407e3288f610558beaae54ecaa32b11c4",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-2e5eaad3",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nft_obj_commit_update"
},
"digest": {
"function_hash": "118399125478225535164839100854874991475",
"length": 209.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dad3bdeef45f81a6e90204bcc85360bb76eccec7",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-3bbeb4ac",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nf_tables_updobj"
},
"digest": {
"function_hash": "22003282119699334223077981859057385975",
"length": 566.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@53026346a94c43f35c32b18804041bc483271d87",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-3de7d0a0",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nft_obj_commit_update"
},
"digest": {
"function_hash": "118399125478225535164839100854874991475",
"length": 209.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e96e204ee6fa46702f6c94c3c69a09e69e0eac52",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-4e77a4ac",
"target": {
"file": "net/netfilter/nf_tables_api.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236833556880872245618340949794285045198",
"330575043823324330432759190824437027153",
"223926536909331343959341476133408014124",
"167805570128791565882814452117245739546",
"46007729443024369608178906395698228435",
"198370590929807835553495865655901910446",
"267112257704444579632412510329551793961",
"225317133291154392375917951497629700263",
"225180440523564634103919577288046595313",
"147964615409834485978679445735066675221",
"315429211979376375800202353816269310174",
"163155381218795741367435033383001469242",
"49785928235927113522571707070344438020",
"301365624491877464333113735538753892457",
"292713278195257590763936566122571351990",
"193657285374348390327932335897360475209",
"237789154843861306285851855004777114558",
"210329156760098529390531904526848084066",
"138274061687348408256646241796173054931",
"145168541512644729443567643386019089295"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e96e204ee6fa46702f6c94c3c69a09e69e0eac52",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-50391a09",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nft_obj_commit_update"
},
"digest": {
"function_hash": "118399125478225535164839100854874991475",
"length": 209.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9880e81d3fd6a43c202f205717485290432826",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-6821a535",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nf_tables_updobj"
},
"digest": {
"function_hash": "281976771683723792108095375827656380358",
"length": 533.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34bb90e407e3288f610558beaae54ecaa32b11c4",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-883cdac2",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "__nf_tables_abort"
},
"digest": {
"function_hash": "190979080702156889281693382955910476503",
"length": 3914.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e96e204ee6fa46702f6c94c3c69a09e69e0eac52",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-96b39793",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nf_tables_updobj"
},
"digest": {
"function_hash": "281976771683723792108095375827656380358",
"length": 533.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dad3bdeef45f81a6e90204bcc85360bb76eccec7",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-9bacd8a2",
"target": {
"file": "net/netfilter/nf_tables_api.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236833556880872245618340949794285045198",
"330575043823324330432759190824437027153",
"223926536909331343959341476133408014124",
"167805570128791565882814452117245739546",
"46007729443024369608178906395698228435",
"198370590929807835553495865655901910446",
"267112257704444579632412510329551793961",
"225317133291154392375917951497629700263",
"184103895304027514868053992288594216502",
"147964615409834485978679445735066675221",
"315429211979376375800202353816269310174",
"71107103116177741635214411842037335338",
"49785928235927113522571707070344438020",
"301365624491877464333113735538753892457",
"292713278195257590763936566122571351990",
"193657285374348390327932335897360475209",
"237789154843861306285851855004777114558",
"210329156760098529390531904526848084066",
"138274061687348408256646241796173054931",
"145168541512644729443567643386019089295"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9880e81d3fd6a43c202f205717485290432826",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-c3c43aa6",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nf_tables_updobj"
},
"digest": {
"function_hash": "22003282119699334223077981859057385975",
"length": 566.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9880e81d3fd6a43c202f205717485290432826",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-d66e9977",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "__nf_tables_abort"
},
"digest": {
"function_hash": "190979080702156889281693382955910476503",
"length": 3914.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34bb90e407e3288f610558beaae54ecaa32b11c4",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-dc2d9c8b",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nft_obj_commit_update"
},
"digest": {
"function_hash": "118399125478225535164839100854874991475",
"length": 209.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@53026346a94c43f35c32b18804041bc483271d87",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-e2e4ba4f",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "__nf_tables_abort"
},
"digest": {
"function_hash": "129207465147218141879295960285401849847",
"length": 3033.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@53026346a94c43f35c32b18804041bc483271d87",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-f4451426",
"target": {
"file": "net/netfilter/nf_tables_api.c",
"function": "nf_tables_updobj"
},
"digest": {
"function_hash": "281976771683723792108095375827656380358",
"length": 533.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e96e204ee6fa46702f6c94c3c69a09e69e0eac52",
"signature_version": "v1"
},
{
"id": "CVE-2022-48933-f60f3dd1",
"target": {
"file": "net/netfilter/nf_tables_api.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236833556880872245618340949794285045198",
"330575043823324330432759190824437027153",
"223926536909331343959341476133408014124",
"167805570128791565882814452117245739546",
"46007729443024369608178906395698228435",
"198370590929807835553495865655901910446",
"267112257704444579632412510329551793961",
"225317133291154392375917951497629700263",
"184103895304027514868053992288594216502",
"147964615409834485978679445735066675221",
"315429211979376375800202353816269310174",
"71107103116177741635214411842037335338",
"49785928235927113522571707070344438020",
"301365624491877464333113735538753892457",
"292713278195257590763936566122571351990",
"193657285374348390327932335897360475209",
"237789154843861306285851855004777114558",
"210329156760098529390531904526848084066",
"138274061687348408256646241796173054931",
"145168541512644729443567643386019089295"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@53026346a94c43f35c32b18804041bc483271d87",
"signature_version": "v1"
}
]