cve-2023-52925
Vulnerability from cvelistv5
Published
2025-02-05 09:07
Modified
2025-05-04 12:49
EPSS score ?
0.02% (0.04564)
Summary
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: don't fail inserts if duplicate has expired nftables selftests fail: run-tests.sh testcases/sets/0044interval_overlap_0 Expected: 0-2 . 0-3, got: W: [FAILED] ./testcases/sets/0044interval_overlap_0: got 1 Insertion must ignore duplicate but expired entries. Moreover, there is a strange asymmetry in nft_pipapo_activate: It refetches the current element, whereas the other ->activate callbacks (bitmap, hash, rhash, rbtree) use elem->priv. Same for .remove: other set implementations take elem->priv, nft_pipapo_remove fetches elem->priv, then does a relookup, remove this. I suspect this was the reason for the change that prompted the removal of the expired check in pipapo_get() in the first place, but skipping exired elements there makes no sense to me, this helper is used for normal get requests, insertions (duplicate check) and deactivate callback. In first two cases expired elements must be skipped. For ->deactivate(), this gets called for DELSETELEM, so it seems to me that expired elements should be skipped as well, i.e. delete request should fail with -ENOENT error.
Impacted products
Vendor Product Version
Linux Linux Version: b15ea4017af82011dd55225ce77cce3d4dfc169c
Version: 7c7e658a36f8b1522bd3586d8137e5f93a25ddc5
Version: 59dab3bf0b8fc08eb802721c0532f13dd89209b8
Version: bd156ce9553dcaf2d6ee2c825d1a5a1718e86524
Version: 24138933b97b055d486e8064b4a1721702442a9b
Version: 94313a196b44184b5b52c1876da6a537701b425a
Version: 1da4874d05da1526b11b82fc7f3c7ac38749ddf8
Create a notification for this product.
   Linux Linux Version: 6.4.11   
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  cvssV3_1: {
                     attackComplexity: "LOW",
                     attackVector: "LOCAL",
                     availabilityImpact: "HIGH",
                     baseScore: 6.2,
                     baseSeverity: "MEDIUM",
                     confidentialityImpact: "NONE",
                     integrityImpact: "NONE",
                     privilegesRequired: "NONE",
                     scope: "UNCHANGED",
                     userInteraction: "NONE",
                     vectorString: "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                     version: "3.1",
                  },
               },
               {
                  other: {
                     content: {
                        id: "CVE-2023-52925",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2025-02-06T15:12:24.648776Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2025-02-06T15:12:27.810Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "net/netfilter/nft_set_pipapo.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "891ca5dfe3b718b441fc786014a7ba8f517da188",
                     status: "affected",
                     version: "b15ea4017af82011dd55225ce77cce3d4dfc169c",
                     versionType: "git",
                  },
                  {
                     lessThan: "af78b0489e8898a8c9449ffc0fdd2e181916f0d4",
                     status: "affected",
                     version: "7c7e658a36f8b1522bd3586d8137e5f93a25ddc5",
                     versionType: "git",
                  },
                  {
                     lessThan: "59ee68c437c562170265194a99698c805a686bb3",
                     status: "affected",
                     version: "59dab3bf0b8fc08eb802721c0532f13dd89209b8",
                     versionType: "git",
                  },
                  {
                     lessThan: "156369a702c33ad5434a19c3a689bfb836d4e0b8",
                     status: "affected",
                     version: "bd156ce9553dcaf2d6ee2c825d1a5a1718e86524",
                     versionType: "git",
                  },
                  {
                     lessThan: "7845914f45f066497ac75b30c50dbc735e84e884",
                     status: "affected",
                     version: "24138933b97b055d486e8064b4a1721702442a9b",
                     versionType: "git",
                  },
                  {
                     status: "affected",
                     version: "94313a196b44184b5b52c1876da6a537701b425a",
                     versionType: "git",
                  },
                  {
                     status: "affected",
                     version: "1da4874d05da1526b11b82fc7f3c7ac38749ddf8",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "net/netfilter/nft_set_pipapo.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "6.4.12",
                     status: "affected",
                     version: "6.4.11",
                     versionType: "semver",
                  },
               ],
            },
         ],
         cpeApplicability: [
            {
               nodes: [
                  {
                     cpeMatch: [
                        {
                           criteria: "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                           versionEndExcluding: "6.4.12",
                           versionStartIncluding: "6.4.11",
                           vulnerable: true,
                        },
                        {
                           criteria: "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                           versionStartIncluding: "4.19.316",
                           vulnerable: true,
                        },
                        {
                           criteria: "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                           versionStartIncluding: "5.4.262",
                           vulnerable: true,
                        },
                     ],
                     negate: false,
                     operator: "OR",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: don't fail inserts if duplicate has expired\n\nnftables selftests fail:\nrun-tests.sh testcases/sets/0044interval_overlap_0\nExpected: 0-2 . 0-3, got:\nW: [FAILED]     ./testcases/sets/0044interval_overlap_0: got 1\n\nInsertion must ignore duplicate but expired entries.\n\nMoreover, there is a strange asymmetry in nft_pipapo_activate:\n\nIt refetches the current element, whereas the other ->activate callbacks\n(bitmap, hash, rhash, rbtree) use elem->priv.\nSame for .remove: other set implementations take elem->priv,\nnft_pipapo_remove fetches elem->priv, then does a relookup,\nremove this.\n\nI suspect this was the reason for the change that prompted the\nremoval of the expired check in pipapo_get() in the first place,\nbut skipping exired elements there makes no sense to me, this helper\nis used for normal get requests, insertions (duplicate check)\nand deactivate callback.\n\nIn first two cases expired elements must be skipped.\n\nFor ->deactivate(), this gets called for DELSETELEM, so it\nseems to me that expired elements should be skipped as well, i.e.\ndelete request should fail with -ENOENT error.",
            },
         ],
         providerMetadata: {
            dateUpdated: "2025-05-04T12:49:52.404Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/891ca5dfe3b718b441fc786014a7ba8f517da188",
            },
            {
               url: "https://git.kernel.org/stable/c/af78b0489e8898a8c9449ffc0fdd2e181916f0d4",
            },
            {
               url: "https://git.kernel.org/stable/c/59ee68c437c562170265194a99698c805a686bb3",
            },
            {
               url: "https://git.kernel.org/stable/c/156369a702c33ad5434a19c3a689bfb836d4e0b8",
            },
            {
               url: "https://git.kernel.org/stable/c/7845914f45f066497ac75b30c50dbc735e84e884",
            },
         ],
         title: "netfilter: nf_tables: don't fail inserts if duplicate has expired",
         x_generator: {
            engine: "bippy-1.2.0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2023-52925",
      datePublished: "2025-02-05T09:07:56.434Z",
      dateReserved: "2024-08-21T06:07:11.018Z",
      dateUpdated: "2025-05-04T12:49:52.404Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2023-52925\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-02-05T10:15:21.963\",\"lastModified\":\"2025-02-06T16:15:37.110\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnetfilter: nf_tables: don't fail inserts if duplicate has expired\\n\\nnftables selftests fail:\\nrun-tests.sh testcases/sets/0044interval_overlap_0\\nExpected: 0-2 . 0-3, got:\\nW: [FAILED]     ./testcases/sets/0044interval_overlap_0: got 1\\n\\nInsertion must ignore duplicate but expired entries.\\n\\nMoreover, there is a strange asymmetry in nft_pipapo_activate:\\n\\nIt refetches the current element, whereas the other ->activate callbacks\\n(bitmap, hash, rhash, rbtree) use elem->priv.\\nSame for .remove: other set implementations take elem->priv,\\nnft_pipapo_remove fetches elem->priv, then does a relookup,\\nremove this.\\n\\nI suspect this was the reason for the change that prompted the\\nremoval of the expired check in pipapo_get() in the first place,\\nbut skipping exired elements there makes no sense to me, this helper\\nis used for normal get requests, insertions (duplicate check)\\nand deactivate callback.\\n\\nIn first two cases expired elements must be skipped.\\n\\nFor ->deactivate(), this gets called for DELSETELEM, so it\\nseems to me that expired elements should be skipped as well, i.e.\\ndelete request should fail with -ENOENT error.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netfilter: nf_tables: no fallar las inserciones si el duplicado ha expirado las autopruebas de nftables fallan: run-tests.sh testcases/sets/0044interval_overlap_0 Esperado: 0-2 . 0-3, obtenido: W: [FALLÓ] ./testcases/sets/0044interval_overlap_0: obtuvo 1 La inserción debe ignorar las entradas duplicadas pero expiradas. Además, hay una extraña asimetría en nft_pipapo_activate: vuelve a obtener el elemento actual, mientras que las otras devoluciones de llamadas ->activate (mapa de bits, hash, rhash, rbtree) usan elem->priv. Lo mismo para .remove: otras implementaciones de conjuntos toman elem->priv, nft_pipapo_remove obtiene elem->priv, luego hace una nueva búsqueda, elimina esto. Sospecho que esta fue la razón del cambio que provocó la eliminación de la verificación de caducidad en pipapo_get() en primer lugar, pero omitir elementos caducados allí no tiene sentido para mí, este ayudante se utiliza para solicitudes de obtención normales, inserciones (verificación duplicada) y devolución de llamada de desactivación. En los primeros dos casos, los elementos caducados deben omitirse. Para ->deactivate(), esto se llama para DELSETELEM, por lo que me parece que los elementos caducados también deben omitirse, es decir, la solicitud de eliminación debe fallar con el error -ENOENT.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":6.2,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.5,\"impactScore\":3.6}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/156369a702c33ad5434a19c3a689bfb836d4e0b8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/59ee68c437c562170265194a99698c805a686bb3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7845914f45f066497ac75b30c50dbc735e84e884\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/891ca5dfe3b718b441fc786014a7ba8f517da188\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/af78b0489e8898a8c9449ffc0fdd2e181916f0d4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.2, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2023-52925\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-02-06T15:12:24.648776Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-02-06T15:12:15.952Z\"}}], \"cna\": {\"title\": \"netfilter: nf_tables: don't fail inserts if duplicate has expired\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"b15ea4017af82011dd55225ce77cce3d4dfc169c\", \"lessThan\": \"891ca5dfe3b718b441fc786014a7ba8f517da188\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"7c7e658a36f8b1522bd3586d8137e5f93a25ddc5\", \"lessThan\": \"af78b0489e8898a8c9449ffc0fdd2e181916f0d4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"59dab3bf0b8fc08eb802721c0532f13dd89209b8\", \"lessThan\": \"59ee68c437c562170265194a99698c805a686bb3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"bd156ce9553dcaf2d6ee2c825d1a5a1718e86524\", \"lessThan\": \"156369a702c33ad5434a19c3a689bfb836d4e0b8\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"24138933b97b055d486e8064b4a1721702442a9b\", \"lessThan\": \"7845914f45f066497ac75b30c50dbc735e84e884\", \"versionType\": \"git\"}], \"programFiles\": [\"net/netfilter/nft_set_pipapo.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.4.11\", \"lessThan\": \"6.4.12\", \"versionType\": \"semver\"}], \"programFiles\": [\"net/netfilter/nft_set_pipapo.c\"], \"defaultStatus\": \"unaffected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/891ca5dfe3b718b441fc786014a7ba8f517da188\"}, {\"url\": \"https://git.kernel.org/stable/c/af78b0489e8898a8c9449ffc0fdd2e181916f0d4\"}, {\"url\": \"https://git.kernel.org/stable/c/59ee68c437c562170265194a99698c805a686bb3\"}, {\"url\": \"https://git.kernel.org/stable/c/156369a702c33ad5434a19c3a689bfb836d4e0b8\"}, {\"url\": \"https://git.kernel.org/stable/c/7845914f45f066497ac75b30c50dbc735e84e884\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnetfilter: nf_tables: don't fail inserts if duplicate has expired\\n\\nnftables selftests fail:\\nrun-tests.sh testcases/sets/0044interval_overlap_0\\nExpected: 0-2 . 0-3, got:\\nW: [FAILED]     ./testcases/sets/0044interval_overlap_0: got 1\\n\\nInsertion must ignore duplicate but expired entries.\\n\\nMoreover, there is a strange asymmetry in nft_pipapo_activate:\\n\\nIt refetches the current element, whereas the other ->activate callbacks\\n(bitmap, hash, rhash, rbtree) use elem->priv.\\nSame for .remove: other set implementations take elem->priv,\\nnft_pipapo_remove fetches elem->priv, then does a relookup,\\nremove this.\\n\\nI suspect this was the reason for the change that prompted the\\nremoval of the expired check in pipapo_get() in the first place,\\nbut skipping exired elements there makes no sense to me, this helper\\nis used for normal get requests, insertions (duplicate check)\\nand deactivate callback.\\n\\nIn first two cases expired elements must be skipped.\\n\\nFor ->deactivate(), this gets called for DELSETELEM, so it\\nseems to me that expired elements should be skipped as well, i.e.\\ndelete request should fail with -ENOENT error.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-02-05T09:07:56.434Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2023-52925\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-02-06T15:12:27.810Z\", \"dateReserved\": \"2024-08-21T06:07:11.018Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-02-05T09:07:56.434Z\", \"assignerShortName\": \"Linux\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.