🛡️ CVE-2022-36027 — tensorflow

🟠 CVSS 8.0 — High ⚠️ Exploit Public CWE-20 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

TensorFlow segfault TFLite converter on per-channel quantized transposed convolutions

Impact

When converting transposed convolutions using per-channel weight quantization the converter segfaults and crashes the Python process.

```python

import tensorflow as tf

class QuantConv2DTransposed(tf.keras.layers.Layer):

def build(self, input_shape):

self.kernel = self.add_weight("kernel", [3, 3, input_shape[-1], 24])

def call(self, inputs):

filters = tf.quantization.fake_quant_with_min_max_vars_per_channel(

self.kernel, -3.0 * tf.ones([24]), 3.0 * tf.ones([24]), narrow_range=True

)

filters = tf.transpose(filters, (0, 1, 3, 2))

return tf.nn.conv2d_transpose(inputs, filters, [*inputs.shape[:-1], 24], 1)

inp = tf.keras.Input(shape=(6, 8, 48), batch_size=1)

x = tf.quantization.fake_quant_with_min_max_vars(inp, -3.0, 3.0, narrow_range=True)

x = QuantConv2DTransposed()(x)

x = tf.quantization.fake_quant_with_min_max_vars(x, -3.0, 3.0, narrow_range=True)

model = tf.keras.Model(inp, x)

model.save("/tmp/testing")

converter = tf.lite.TFLiteConverter.from_saved_model("/tmp/testing")

converter.optimizations = [tf.lite.Optimize.DEFAULT]

# terminated by signal SIGSEGV (Address boundary error)

tflite_model = converter.convert()

```

Patches

We have patched the issue in GitHub commit [aa0b852a4588cea4d36b74feb05d93055540b450](https://github.com/tensorflow/tensorflow/commit/aa0b852a4588cea4d36b74feb05d93055540b450).

The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range.

For more information

Please consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported by Lukas Geiger via [Github issue](https://github.com/tensorflow/tensorflow/issues/53767).

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

Weakness class

CVE-2022-36027 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.

Affected software

CVE-2022-36027 is recorded against 3 packages.

  • tensorflow
  • tensorflow-cpu (from 2.9.0 up to 2.9.1)
  • tensorflow-gpu (from 2.9.0 up to 2.9.1)

Timeline and source

Published on 6 March 2024 and last revised on 13 July 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Web)
nvd.nist.gov (Web)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE CWE-20
Public Exploit ⚠️ Yes
Source OSV
Published 2024-03-06
Updated 2026-08-12
Modified 2026-07-13

Affected Packages

Software From version Fixed in
tensorflow
tensorflow-cpu 2.9.0 2.9.1
tensorflow-gpu 2.9.0 2.9.1

Similar Threats

Exploit Protection

Are you running tensorflow?

CVE-2022-36027 carries CVSS 8.0 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2022-36027 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.