cipso: fix optlen corruption in cipso_v4_delopt()
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: cipso: fix optlen corruption in cipso_v4_delopt() cipso_v4_delopt() recomputes the option length by walking the option buffer after the CIPSO option has been moved out. The walk then reads the stale bytes at the tail of the buffer as option data, and a crafted setsockopt(IP_OPTIONS) buffer can make it treat one of them as an option length, increasing opt->opt.optlen beyond the valid option data. The corrupted length stays on the socket and is later used as the copy length by getsockopt(IP_OPTIONS) and by the udp/raw/ping sendmsg paths, where it exceeds the size of the buffers they copy into. Compute the new length from the intact options before the move and subtract the CIPSO length, and fill the padding with IPOPT_END.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 014ab19a69c325f52d7bae54ceeda73d6307ae0c, before 699141380f7f249b7ee594198d9bea6bcd4862ea; from 014ab19a69c325f52d7bae54ceeda73d6307ae0c, before 4077bd2bcebf43922f84aa87f6839153212df509; from 014ab19a69c325f52d7bae54ceeda73d6307ae0c, before 0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7; from 014ab19a69c325f52d7bae54ceeda73d6307ae0c, before 1f1f8e8c5176234fa31858cd25f2e9b88aac0a45 | 699141380f7f249b7ee594198d9bea6bcd4862ea; 4077bd2bcebf43922f84aa87f6839153212df509; 0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7; 1f1f8e8c5176234fa31858cd25f2e9b88aac0a45 |
| Linux Linux | Software | 2.6.28 | not recorded |
The 7.0 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.0 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 4 sources for this flaw, none tagged as a vendor patch.