In the Linux kernel, the following vulnerability has been resolved:
skbuff: Account for tail adjustment during pull operations
Extending the tail can have some unexpected side effects if a program uses a helper like BPFFUNCskbpulldata to read partial content beyond the head skb headlen when all the skbs in the gso fraglist are linear with no headfrag -
kernel BUG at net/core/skbuff.c:4219! pc : skbsegment+0xcf4/0xd2c lr : skbsegment+0x63c/0xd2c Call trace: skbsegment+0xcf4/0xd2c _udpgsosegment+0xa4/0x544 udp4ufofragment+0x184/0x1c0 inetgsosegment+0x16c/0x3a4 skbmacgsosegment+0xd4/0x1b0 _skbgsosegment+0xcc/0x12c udprcvsegment+0x54/0x16c udpqueuercvskb+0x78/0x144 udpunicastrcvskb+0x8c/0xa4 _udp4librcv+0x490/0x68c udprcv+0x20/0x30 ipprotocoldeliverrcu+0x1b0/0x33c iplocaldeliver+0xd8/0x1f0 iprcv+0x98/0x1a4 deliverptypelistskb+0x98/0x1ec _netifreceiveskb_core+0x978/0xc60
Fix this by marking these skbs as GSO_DODGY so segmentation can handle the tail updates accordingly.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@331615d837f4979eb91a336a223a5c7f7886ecd5",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-31fe5f53",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d7afdcbc9d32423f177ee12b7c93783aea338fb",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "310739057670953355500992544826607434632",
"length": 1847.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-340d1d7c",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fb773eed4909ef5dc1bbeb3629a337d3336df7e",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "310739057670953355500992544826607434632",
"length": 1847.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-36d9cb3f",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ac417d71b80e74b002313fcd73f7e9008e8e457",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-499cde24",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ff3743d00f41d803e6ab9334962b674f3b7fd0cb",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "200290323861813013587011709600768621693",
"length": 1842.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-4e0fc2d4",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ff3743d00f41d803e6ab9334962b674f3b7fd0cb",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-55b67981",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@331615d837f4979eb91a336a223a5c7f7886ecd5",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "310739057670953355500992544826607434632",
"length": 1847.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-5a071d34",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@668dc454bcbd1da73605201ff43f988c70848215",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-5e9dafb6",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d59f0ca153e9573ec4f140988c0ccca0eb4181b",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-7389dc33",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@668dc454bcbd1da73605201ff43f988c70848215",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "310739057670953355500992544826607434632",
"length": 1847.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-7fafd13c",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d7afdcbc9d32423f177ee12b7c93783aea338fb",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-7fef40ab",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@821be5a5ab09a40ba09cb5ba354f18cf7996fea0",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-90c4d796",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@946dd5dc4fcc4123cdfe3942b20012c4448cf89a",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-936d3310",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ac417d71b80e74b002313fcd73f7e9008e8e457",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "281872086430266917320542218858834094567",
"length": 1919.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-cd16885e",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d59f0ca153e9573ec4f140988c0ccca0eb4181b",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "39339295566871116165225752895145667705",
"length": 1912.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-d25755dd",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fb773eed4909ef5dc1bbeb3629a337d3336df7e",
"target": {
"file": "net/core/skbuff.c"
},
"digest": {
"line_hashes": [
"263314433610722816301275435102825579010",
"11346861037517743537286610436967136206",
"63767425976010193617390710012119290570"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50365-d33c10df",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@821be5a5ab09a40ba09cb5ba354f18cf7996fea0",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "310739057670953355500992544826607434632",
"length": 1847.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-ddf97791",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@946dd5dc4fcc4123cdfe3942b20012c4448cf89a",
"target": {
"function": "__pskb_pull_tail",
"file": "net/core/skbuff.c"
},
"digest": {
"function_hash": "310739057670953355500992544826607434632",
"length": 1847.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50365-fe2da99a",
"signature_version": "v1"
}
]